This is the Visual Studio Code extension to use CTAGS with Ruby language through of Ripper-Tags
- OS : Windows / Linux (Test OK) / OSX
- Ripper-Tags
- Install ripper-tags "
gem install ripper-tags
" and open the user settings (File > Preferences > User Settings) and set the executable path of ripper-tags and the options to be used like the example below:
"ctags": {
"executePath": "/home/username/.rbenv/shims/ripper-tags",
"options": "--tag-file=.tags --recursive --force --exclude=/assets/ --exclude=.bundle --exclude=.git/ --exclude=coverage/ --exclude=.arcanist-extensions/ --exclude=log/ --exclude=tmp/ --exclude=bin/",
"fileName": ".tags"
}
- Open a source code directory using 'Open Folder'
- Generate the ctag file for ruby using 'CTAGS:Generate Ruby tags' command. (Press 'F1' key and type 'CTAGS:Generate Ruby tags' or the keybinding
ctrl+alt+g
) - After the ctag file was generated, search the symbol by select it on editor and use 'CTAGS:Search Ruby code' command. (Press 'F1' key and type 'CTAGS:Search Ruby code' or the keybinding
ctrl+alt+t
);
Press ctrl+alt+g
(cmd+alt+g
on mac)
Select the words in the vscode and press ctrl+alt+t
(cmd+alt+t
on mac)
- Source : otoniel-isidoro/vscode-ruby-ctags
- 2016.09.13 1.4.1 : Bug fix after vscode version update
- 2016.08.23 1.4.0 : Fix runtime dependencies
- 2016.08.22 1.3.1 : Update README
- 2016.08.22 1.3.0 : Add new keywords
- 2016.08.22 1.2.0 : Change command description
- 2016.08.21 1.1.0 : Fix npm
hashmap
dependency - 2016.08.21 1.0.0 : First release
- Integration with VSCODE Go To Definition vscode-api#DefinitionProvider.provideDefinition
- Integration with VSCODE Go to Symbol vscode-api#languages.registerDocumentSymbolProvider
- Go To Definition with mouse click