Presented by Tower - The Best Git Client For Mac and Windows
Presented by Tower - The Best Git Client For Mac and Windows
edition
presented by Tower — the best Git client for Mac and Windows
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
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
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
Keep preview mode editor open CTRL K ENTER Open in new editor group CTRL ENTER Close window/instance CTRL ⇧ W
Copy path of file CTRL K P Find next/previous F3 / ⇧ F3 Show source control CTRL ⇧ G
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”.
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.