An extension that provides CTags Support
in Visual Studio Code!
ext install ctags-support
Additional Setup
You have to install CTags and generate the .tags file before you use this extension.
Run the CTags command under the your project folder.
ctags -R -f .tags
Keybinding
1. Navigate to Defination
Select the words in the vscode and the press cmd+t
(ctrl+t
)
2. See Navigation History
Press cmd+shift+t
(ctrl+shift+t
)
Other Features
1. Clear All Navigation History
Press f1
and input Ctags Support: clear all navigation history
2. Clear One Navigation History
Press f1
and input Ctags Support: clear one navigation history
, then choose the one you would like to delete
Custom Keybinding
You can also set custom shortcuts in keybindings.json
via Code => Preferences => Keyboard Shortcuts
For example:
Navigate to Defination
[
{ "key": "cmd+t",//set to your favorite shortcut
"command": "extension.searchCTags",
"when": "editorTextFocus" }
]
See Navigation History
[
{ "key": "cmd+shift+t",//set to your favorite shortcut
"command": "extension.showNavigationHistory",
"when": "editorTextFocus" }
]
Clear All Navigation History
[
{ "key": "set to your favorite shortcut",//set to your favorite shortcut
"command": "extension.clearAllNavigationHistory",
"when": "editorTextFocus" }
]
Clear One Navigation History
[
{ "key": "set to your favorite shortcut",//set to your favorite shortcut
"command": "extension.clearOneNavigationHistory",
"when": "editorTextFocus" }
]
Issues
Please submit issues to ctags-support
Enjoy!