Add tag support or JDK source codein Vim

xiaoxiao2025-02-12  22

In the root diectory of JDK source code, run the following command.

 

ctags -R --languages=java --exclude=com --exclude=sunw .

 

Only java and javax:

 

ctags -R --languages=java --exclude=com --exclude=sunw --exclude=sun --exclude=launcher --exclude=org .

 

Add the following line to .vimrc

autocmd BufRead,BufNewFile *.java setlocal tags=/home/jing/data/road/java/java-1.6.0_15/tags

转载请注明原文地址: https://www.6miu.com/read-5024569.html

最新回复(0)