The standard Go to Symbol in File...
feature of VS Code can be noisy when you're only interested in functions. This extension adds a Go to Clunction in File...
feature that allows you to focus only on the classes and functions declared in the file.
This is adapted from the original by trinxnz
- Go to the extensions menu in vscode and search for "go to clunction"
- Install it
Alternatively, you can download the extension from the marketplace.
# from the repo base
sudo npm install -g vsce
npm install
vsce package
This should pop out a go-to-clunction-1.0.X.vsix file
Then you can install from command line with code --install-extension go-to-clunction-1.0.X.vsix
Or in VSCode, Press Control+Shift+X to navigate to extensions manager. Then click on the actions menu, and select Install from vsix.
- Open the
Commands Palette
(Ctrl+Shift+P) and selectGo to Clunction in File...
- Alternatively, bind a key to the command
workbench.action.gotoClunction
Note: No default keybinding is provided
This project is licensed under the MIT License - see the LICENSE file for details.
- use regexes to parse python (in addition to current cpp/h files)
- Add more symbols to the list?
- Better handling for symbol list quickview, looks better now
- Parse cpp/h files with regex rather than
vscode.executeDocumentSymbolProvider
command (which in practice seems to be pretty slow on cpp files for some reason) - Add option for display of constant values in quickview
- Add option for display of "MARK" comments in quickview
You're on your own, kid