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

Presented by Tower - The Best Git Client For Mac and Windows

The document provides a cheat sheet with keyboard shortcuts for Visual Studio Code. It lists shortcuts for general navigation, code selection and editing, file navigation, search, views and tools. It also provides details on using splits, the integrated terminal, and changing keyboard shortcut preferences.

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)
26 views2 pages

Presented by Tower - The Best Git Client For Mac and Windows

The document provides a cheat sheet with keyboard shortcuts for Visual Studio Code. It lists shortcuts for general navigation, code selection and editing, file navigation, search, views and tools. It also provides details on using splits, the integrated terminal, and changing keyboard shortcut preferences.

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

VISUAL STUDIO CODE Cheat Sheet Windows

edition
presented by Tower — the best Git client for Mac and Windows

GENERAL SELECTING AND NAVIGATING CODE


Show command palette CTRL ⇧ P Select line CTRL L

Edit keyboard shortcuts CTRL K CTRL S Expand/shrink selection ALT ⇧ → /


ALT ⇧ ←

SMART CODE FEATURES Add cursor above/below CTRL ALT ↑ / EDITING CODE
CTRL ALT ↓
Trigger suggestion CTRL SPACE Move line up/down ALT ↑ / ALT ↓

Trigger parameter hints CTRL ⇧ SPACE Add cursors at line ends ALT ⇧ I Copy line up/down ALT ⇧ ↑ / ALT ⇧ ↓

Go to definition F12 Select all selection occurrences CTRL ⇧ L Delete line CTRL ⇧ K

Peek definition ALT F12 Undo cursor operation CTRL U New line above/ CTRL ENTER /
below current CTRL ⇧ ENTER
Show references ⇧ F12 Skip current word CTRL K CTRL D

Rename symbol F2 Go back/forward ALT ← / ALT → Indent/outdent line ] / CTRL


CTRL ⌘ ⌘ [

Format document ALT ⇧ F Go to line CTRL G Toggle line comment CTRL /

Format selection CTRL K CTRL F Go to symbol CTRL ⇧ O Toggle block comment ALT ⇧ A

Change file language CTRL K M Focus breadcrumbs CTRL ⇧ . Trim trailing whitespace CTRL K CTRL X

Editor groups

Activity bar

Side bar $ Panel with


terminal

Status bar

EDITOR MANAGEMENT
Focus 1st, 2nd, 3rd editor group CTRL 1 / CTRL 2 / CTRL 3 Close all CTRL K CTRL W Zen mode CTRL K Z

Open next/previous editor CTRL PAGEDOWN / CTRL ←


PAGEUP Reopen closed editor CTRL ⇧ T New window/instance CTRL ⇧ N

Keep preview mode editor open CTRL K ENTER Open in new editor group CTRL ENTER Close window/instance CTRL ⇧ W

FILE NAVIGATION SEARCH VIEW


Open recent CTRL R Find CTRL F Toggle side bar CTRL B

Quick open CTRL P Replace CTRL H Show/focus explorer CTRL ⇧ E

Go to symbol in workspace CTRL T Replace in files CTRL ⇧ H Show search CTRL ⇧ F

Copy path of file CTRL K P Find next/previous F3 / ⇧ F3 Show source control CTRL ⇧ G

Reveal file in Explorer CTRL K R Show debug CTRL ⇧ D

TOOLS AND TERMINAL Show extensions CTRL ⇧ X

Run build task CTRL ⇧ B Toggle panel CTRL J

Show/focus integrated terminal CTRL ` Open Markdown preview CTRL ⇧ V


The best Git client
Create new terminal CTRL ⇧ ` Toggle word wrap ALT Z
for Mac & Windows
Free 30-day trial available
at www.git-tower.com
VISUAL STUDIO CODE Cheat Sheet Windows
edition
presented by Tower — the best Git client for Mac and Windows

EDITOR SPLITS

You can split editors to achieve just about any layout you want. The View → Editor Layout menu
holds some presets like three columns or a two-by-two grid. There are commands for splitting
the current editor in any direction, and dragging-and-dropping the tab of an open file also lets
you create a split in any direction. In addition, here are some ways to manage the editor layout:

CTRL 2 , CTRL 3 etc. will bring up additional editors, or focus that editor if it’s already opened.

ALT -clicking a file in the Explorer in the side bar will open the file in a second editor.

CTRL ENTER in the Quick Open file list opens the file in a new editor.

$ TERMINAL

The panel at the bottom of the VS Code interface houses an integrated terminal.
CTRL J toggles the panel, while CTRL ` focuses and then toggles the terminal.

CTRL ⇧ ` opens a new terminal. You can shift between open terminals using the dropdown in
the upper-right corner of the panel. The terminal can be split, and binding a keyboard shortcut
to the command “View: Toggle Maximized Panel” allows you to temporarily maximize it.

There are also commands available to “Run Selected Text in Active Terminal” and “Run Active
File in Active Terminal”.

⌘ KEYBOARD SHORTCUT PREFERENCES

Open the keyboard shortcut preferences with the shortcut CTRL K CTRL S . Here, you can
search for a command like “add cursor below”, but you can also search for a key binding. For
example, searching for “ctrl shift cmd right” shows the command bound to that shortcut.

The preferences show the keyboard shortcuts with the current keyboard layout. If you switch
your keyboard layout, the shortcuts displayed update accordingly.

You can filter the shortcuts to display only bindings added by the user or default bindings by
typing @source:user or @source:default in the search bar.

The best Git client for Mac & Windows


Free 30-day trial available at www.git-tower.com

You might also like