

We think there's nothing worse than a big context switch when all you want is to quickly check something.

Type the first letter of a type you want to navigate to, regardless of which file contains it, and press Enter. Some languages support jumping to a symbol across files with ⌘T (Windows, Linux Ctrl+T). Press Up or Down and navigate to the place you want. By typing : the symbols will be grouped by category. You can navigate symbols inside a file with ⇧⌘O (Windows, Linux Ctrl+Shift+O). For an interface, this shows all the implementors of that interface and for abstract methods, this shows all concrete implementations of that method. Languages can also support jumping to the implementation of a symbol by pressing ⌘F12 (Windows, Linux Ctrl+F12). The command is not bound to a keyboard shortcut by default but you can add your own custom keybinding. This will take you to the definition of the type of a symbol. Some languages also support jumping to the type definition of a symbol by running the Go to Type Definition command from either the editor context menu or the Command Palette. Tip: You can jump to the definition with Ctrl+Click or open the definition to the side with Ctrl+Alt+Click. If you press Ctrl and hover over a symbol, a preview of the declaration will appear: If a language supports it, you can go to the definition of a symbol by pressing F12. Press ⇧⌘ (Windows, Linux Ctrl+Shift+ ) to focus the last element, use ← (Windows, Linux Left) and → (Windows, Linux Right) to navigate, and use Space to reveal the element in the editor. You can also interact with breadcrumbs without the dropdown. When the dropdown appears, start typing - all matching elements will be highlighted and the best match will be selected for quick navigation.

Use the ← (Windows, Linux Left) and → (Windows, Linux Right) keyboard shortcuts to go to elements before or after the current element. It will select that last element and open a dropdown that allows you to navigate to a sibling file or symbol. To interact with breadcrumbs, use the Focus Breadcrumbs command or press ⇧⌘. position - position in the file (default).You can control how symbols are ordered in the Breadcrumbs dropdown with the breadcrumbs.symbolSortOrder settings. By default, breadcrumbs show file and symbol icons to the left of the breadcrumb but you can remove the icons by setting breadcrumbs.icons to false. Both support on, off, and last and they define if or what part of the path you see. If you have very long paths or are only interested in either file paths or symbols paths, you can use the breadcrumbs.filePath and breadcrumbs.symbolPath settings. The appearance of breadcrumbs can be customized. You can turn off breadcrumbs with the View > Show Breadcrumbs toggle or with the breadcrumbs.enabled setting. If the current file type has language support for symbols, you will see the current symbol path and a dropdown of other symbols at the same level and below. Selecting a breadcrumb in the path displays a dropdown with that level's siblings so you can quickly navigate to other folders and files. The symbols shown are the same as in Outline view and Go to Symbol. It shows the current location and allows you to quickly navigate between folders, files, and symbols.īreadcrumbs always show the file path and, with the help of language extensions, the symbol path up to the cursor position. The editor has a navigation bar above its contents called Breadcrumbs.

If you are jumping around between different lines of the same file, these shortcuts allow you to navigate between those locations easily. To open one of these files, use Tab again to pick the file you want to navigate to, then release Ctrl to open it.Īlternatively, you can use ⌃- (Windows Alt+Left, Linux Ctrl+Alt+-) and ⌃⇧- (Windows Alt+Right, Linux Ctrl+Shift+-) to navigate between files and edit locations. Hold Ctrl and press Tab to view a list of all files open in an editor group.
#SELECT OBJECTS IN MSTS ROUTE EDITOR CODE#
VS Code provides two powerful commands to navigate in and across files with easy-to-use key bindings. However, when you are working on a task, you will find yourself quickly jumping between the same set of files. The Explorer is great for navigating between files when you are exploring a project. Tip: You can open any file by its name when you type ⌘P (Windows, Linux Ctrl+P) ( Quick Open). In this topic, we'll first describe VS Code's language intelligence features (suggestions, parameter hints, smart code navigation) and then show the power of the core text editor. Visual Studio Code has a high productivity code editor which, when combined with programming language services, gives you the power of an IDE and the speed of a text editor. Configure IntelliSense for cross-compiling.
