Skip to content

VSCode extension that adds the ability to go to only method symbols declared in the active document

License

Notifications You must be signed in to change notification settings

apollokit/vscode-go-to-clunction

 
 

Repository files navigation

Go To Class/Function ("Clunction")

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

Usage

Installing

In VSCode from extensions marketplace

  • Go to the extensions menu in vscode and search for "go to clunction"
  • Install it

Alternatively, you can download the extension from the marketplace.

Building and installing it yourself

# 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.

Usage

  • Open the Commands Palette (Ctrl+Shift+P) and select Go to Clunction in File...
  • Alternatively, bind a key to the command workbench.action.gotoClunction

Note: No default keybinding is provided

License

This project is licensed under the MIT License - see the LICENSE file for details.

Todo

  • use regexes to parse python (in addition to current cpp/h files)
  • Add more symbols to the list?

Release Notes

0.0.5

  • 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

Usage

0.0.4

You're on your own, kid

About

VSCode extension that adds the ability to go to only method symbols declared in the active document

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 100.0%