Sublime text3 install ctags implement tracking function jump

There the source insight track jump functions, a plug mounted in vim ctags track jump function may also be implemented function, similarly, in the sublime text can also achieve the same functionality by installing ctags.

First, the installation package control :( if installed please ignore)

(Reference https://packagecontrol.io/installation#st3)

Second, in the installation sublime text in ctags

1. Download the latest ctags to non-Chinese directory, here, we recommend c: \ windows \ system32, ctags can be downloaded from http://ctags.sourceforge.NET/, last updated in 2009, version 5.8;

Ctags.exe download, unzip to the c: \ windows \ system32 directory;

2, the installation package control install ctags sublime text in the

Shortcut ctrl + shift + p, input pci, enter the command line mounted ctags

3, the configuration ctags path
Here Insert Picture Description
open ctags the settings-default, all the code and copy and paste it to the setting-user;
Here Insert Picture Description
and your path ctags more locations;

4, before using the function turned the function, Mr. Cheng .tags file, just in the project file in the project manager right click Ctags: Rebuild Tags can be (note, perhaps regenerate .tags after modification file)
Here Insert Picture Description
generates the following two files:
Here Insert Picture Description
after 5, all work well prepared, you can right-click on the name of the function navigate to definition jump to a specific function, and returns with a jump back;

Third, the track jump function settings shortcuts

  1. Configuring goal: use Ctrl + mouse button operation to achieve a function of track;

  2. In ST3 Open Preferences -> Package Setting -> CTags -> Mouse Bindings-Default, all the code and copy and paste it into the Mouse Bindings-User;

  3. Modify the parameters of modifiers, remove the shift, and then save (if there are other habit modifiers can be set to any other keyboard keys, it does not conflict with other hotkey);
    Here Insert Picture Description
    herein incorporated by reference from
    https://blog.csdn.net/ z1026544682 / article / details / 86088854

    https://www.jianshu.com/p/543d9e894177

Published an original article · won praise 1 · views 88

Guess you like

Origin blog.csdn.net/rurong_yao/article/details/104327775