Usual keys
I’ll only list those I find useful.
Navigation
<C-Up>
/<C-Down>
: move up ↑ / down ↓ without changing cursor position.<C-g>
: go to line number.<C-p>
: go to other files.<C-S-p>
: show Command Palette.<C-b>
: toggle left side bar.<C-j>
: toggle Terminal.
Searching / Replacing
As usual, it supports custom selection range and regular expressions as expected. Transformations preserving cases are possible.
<F3>
: jump to next matching word. It also opens the search dialog box with the previously used search pattern if the search dialog box is not present.<S-F3>
: jump to previous matching word. It also opens the search dialog box with the previously used search pattern if the search dialog box is not present.
Editing / Selection
<C-Enter>
/<C-S-Enter>
: insert empty new line below / above current line. It works likeo
/O
in Vim.<Alt-Up>
/<Alt-Down>
: swap selected lines (or current line) up ↑ / down ↓.<Alt-S-Up>
/<Alt-S-Down>
: duplicate selected lines (or current line) up ↑ / down ↓.<C-x>
: cut current line.<C-l>
: select current line and move cursor to the beginning of next line.<C-[>
/<C-]>
: unindent / indent current line, like<<
/>>
in Vim.<C-/>
: toggle comment.
Multi-cursors:
<C-d>
: jump to next occurence of selected content, or select current word.<C-Alt-Up>
/<C-Alt-Down>
: add caret above / below.
User config
Theme
I’ve switched to Solarized Dark Theme because I like Solarized color scheme. This can be done by
- type
<C-S-p>
. - input theme in the popup text field
- choose Preferences: Color Theme.
- select your favorite plugin.
Plugins
Type code --list-extensions
to view the plugin list.
vscode-pandoc
For detailed explanation, see my Simple Document Templates.
<C-k>
+p
: choose output file format.