0% found this document useful (0 votes)
20 views2 pages

Splitting and Focusing: Jumping Within Files

The document outlines keyboard shortcuts in VS Code for splitting and focusing views, navigating files, making use of outlines, selecting code, definitions and references, IntelliSense, the terminal, and miscellaneous actions. Many shortcuts use Ctrl/Cmd and other modifier keys to quickly access common editor functions.

Uploaded by

cvpn55
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
20 views2 pages

Splitting and Focusing: Jumping Within Files

The document outlines keyboard shortcuts in VS Code for splitting and focusing views, navigating files, making use of outlines, selecting code, definitions and references, IntelliSense, the terminal, and miscellaneous actions. Many shortcuts use Ctrl/Cmd and other modifier keys to quickly access common editor functions.

Uploaded by

cvpn55
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

Splitting and focusing Keyboard shortcuts

in VS code
Split editor Focus explorer panel
ctrl + \ ( ⌘ + \) ctrl + 0 ( ⌘ + 0)
Switch between views Focus code view
ctrl + 1 ( ⌘ + 1), ctrl + 1 (⌘ + 1),
ctrl + 2 ( ⌘ + 2)... ctrl + 2 (⌘ + 2)...

Switch between tabs


ctrl + page up / page down ( ⌘ + page up / page down)
Switch between consecutive tabs
ctrl + page up / page down

Navigating files
Open search bar
ctrl + p ( ⌘ + p)
Switch directly to previous/next file
alt + left / right (ctrl + shift + - / ctrl + - )

Making use of an outline


Open command palette to jump to part of an outline
ctrl + shift + o ( ⌘ + shift + o)
Open command palette to search whole project for given piece of code
ctrl + t ( ⌘ + t)
Jumping within files
Straight to given line Beginning/end of file
ctrl + g ctrl + home (⌘ + up)
Return to cursor's prior position ctrl + end (⌘ + down)
ctrl + u ( ⌘ + u)

Selecting code
Select pieces of code based on scope (repeated use makes selection bigger/smaller)
alt + shift + left / right ( ⌘ + ctrl + shift + left / right)
Definitions and references Keyboard shortcuts
Jump to definition of highlighted function in VS code

F12
Peek at implementation of highlighted function Change name of given symbol
alt + F12 (option + F12) F2
esc when done Closer look at errors
Peek at references of symbol F8
shift + F12 ( ⌘ + k and F12) esc when done

Intellisense
Hover
1. Set shortcut
ctrl + k ( ⌘ + k) and then ctrl + s (⌘ + s)
2. Search for Show hover action and set it to preferred shortcut

Showing recommended actions


See available actions for currently highlighted code
ctrl + . ( ⌘ + .)
Terminal
Open terminal Kill terminal
ctrl + ` 1. In shortcuts setting input, type in:
Open more terminals workbench.action.terminal.kill
ctrl + shift + ` 2. Set preferred shortcut

Split terminal into panels


Maximize terminal
ctrl + shift + 5
1. In shortcuts setting input, type in:
Focus on terminal in editor workbench.action.toggleMaximizedPanel
ctrl + ` 2. Set preferred shortcut
Switch focus between split panels
alt + left / right ( ⌘ + option + left / right)
Miscellaneous
Open command palette with:
ctrl + shift + p ( ⌘ + shift + p) -> type in shortcut action

You might also like