Visual Studio Code Extenion to navigate through the functions, variables, and classes using quick and easy keycommands similar to functionality provided by IntelliJ IDE's (next/previous function)or Resharper (next/previous member)
This Extension provides two key commands to navigate up and down through the members in your file.
This extension contributes the following customizable Keyboard Shortcuts:
Command | Description | Key Command |
---|---|---|
gotoNextPreviousMember.previousMember |
Move To Previous Member | ctrl+up |
gotoNextPreviousMember.nextMember |
Move To Next Member | ctrl+down |
For the outline to work, the language support plugins need to support symbol information.
For the outline to form a tree structure, the language support plugins need to report the entire definition range as part of symbol.
See VS Code issue #34968 and language server protocol issue #132 for a discussion.
Here is a list of languages known to work with Code Outline:
Language/Format | Extension |
---|---|
C | C/C++ |
C++ | C/C++, cquery |
Docker | Docker |
HTML | Comes with VS Code |
JavaScript | Comes with VS Code |
JSON | Comes with VS Code |
Markdown | Comes with VS Code |
Perl | Perl |
PHP | PHP Symbols |
Python | Python |
TypeScript | Comes with VS Code |
YAML | YAML Support by Red Hat |
Please report any missing extensions and I'll update the list.
If you are experiencing no movement upon running the command:
I have observed an issue with the Visual Studio API to return symbols from vscode.executeDocumentSymbolProvider
. One way I have found to possibly fix the issue is to disable all extensions, restart Visual Studio and then enable all extensions and restart again.
Possible Related Issue: dotnet/vscode-csharp#2192
See CHANGELOG.md
A Visual Studio Extension that provides the ability to quickly navigate back and forth between recently made edits
Enjoy!
MIT
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.