Class Navigator helps to quickly jump between classes and functions/methods in a current file.
Install using Package Control:
- Package Control: Install Package
- Select by name
Class Navigator
Show the list of classes in a current file and go to selected one.
- Command Palette -> Class Navigator: Go to Class
or
| version | shortcut |
|---|---|
| Linux | Super+Shift+C |
| Windows | Win+Shift+C |
| macOS | ⌘+Shift+C |
Jump to previous or next function/method in a current file.
- Command Palette -> Class Navigator: Go to previous Function
- Command Palette -> Class Navigator: Go to next Function
or
| version | Go to previous | Go to next |
|---|---|---|
| Linux | Super+Alt+↑ | Super+Alt+↓ |
| Windows | Win+Alt+↑ | Win+Alt+↓ |
| macOS | ⌘+Alt+Shift+↑ | ⌘+Alt+Shift+↓ |
Class Navigator is using "Goto Symbol..." under the hood with some additional
filtering defined in naviclass.config.
Currently class and function detection is tuned for Python source only.
For all other sources it is trying to detect first-level items for class and consider all items in "Goto Symbol..." as functions.
Feel free to add more accurate detection for other source types - check
the naviclass/config.py or create the issue with details.