Skip to content

Instantly share code, notes, and snippets.

@patricktouchette
Created August 31, 2020 18:01
Show Gist options
  • Save patricktouchette/d8766c1f7023636337513831c84c4f00 to your computer and use it in GitHub Desktop.
Save patricktouchette/d8766c1f7023636337513831c84c4f00 to your computer and use it in GitHub Desktop.
Caster commands for VS Code

Caster Commands For VS Code

General

Command Shortcut Description
[open] command palette [<text>] Ctrl+Shift+P, F1 Show Command Palette
(open file | go to [tab]) [<text>] Ctrl+P Quick Open, Go to File…
new window Ctrl+Shift+N New window/instance
close window Ctrl+Shift+W Close window/instance
settings Ctrl+, User Settings
keyboard shortcuts Ctrl+K Ctrl+S Keyboard Shortcuts
snippets a-f, p, s:2, enter User Snippets

Basic editing

Command Shortcut Description
cut Ctrl+X Cut line (empty selection)
stoosh Ctrl+C Copy line (empty selection)
switch line up [<n>] Alt+↑ Move line up
switch line down [<n>] Alt+↓ Move line down
copy line up [<n>] Shift+Alt+↑ Copy line up
copy line down [<n>] Shift+Alt+↓ Copy line down
hard delete Ctrl+Shift+K Delete line
tell sink Ctrl+Enter Insert line below
Ctrl+Shift+Enter Insert line above
match bracket Ctrl+Shift+\ Jump to matching bracket
indent [<n>] Ctrl+] Indent line
(unindent | out dent) [<n>] Ctrl+[ outdent line
lease wally Home Go to beginning of line
ross wally End Go to end of line
sauce wally Ctrl+Home Go to beginning of file
dunce wally Ctrl+End Go to end of file
scroll up [<n>] Ctrl+↑ Scroll line up
scroll down [<n>] Ctrl+↓ Scroll line down
scroll page up [<n>] Alt+PgUp Scroll page up
scroll page down[<n>] Alt+PgDn Scroll page down
(fold | collapse) region Ctrl+Shift+[ Fold (collapse) region
(unfold | uncollapse) region Ctrl+Shift+] Unfold (uncollapse) region
(fold | collapse) [all] subregions Ctrl+K Ctrl+[ Fold (collapse) all subregions
(unfold | uncollapse) [all] subregions Ctrl+K Ctrl+] Unfold (uncollapse) all subregions
(fold | collapse) [all] regions Ctrl+K Ctrl+0 Fold (collapse) all regions
(unfold | uncollapse) [all] regions Ctrl+K Ctrl+J Unfold (uncollapse) all regions
Ctrl+K Ctrl+C Add line comment
Ctrl+K Ctrl+U Remove line comment
comment [line] Ctrl+/ Toggle line comment
block comment Shift+Alt+A Toggle block comment
toggle word wrap Alt+Z Toggle word wrap
select between <between_parables> [<n>] Select between parentheses noninclusive *
select around <around_parables> [<n>] Select between parentheses inclusive *
join line join lines together

* requires 'quick and simple text selection' VScode extension
** <between_parables> can be prekris, brax, curly, angle, single, quote
** <around_parables> can be prekris, brax, curly, angle

Navigation

Command Shortcut Description
show all symbols Ctrl+T Show all Symbols
[(go to | jump | jump to)] line Ctrl+G Go to Line...
(open file | go to [tab]) [<text>] Ctrl+P Go to File...
go to symbol Ctrl+Shift+O Go to Symbol...
[show] problems [panel] Ctrl+Shift+M Show Problems panel
next error F8 Go to next error or warning
(prior | previous) error Shift+F8 Go to previous error or warning
Ctrl+Shift+Tab Navigate editor group history
go back [<n>] Alt+← Go back
go forward [<n>] Alt+→ Go forward
toggle tab moves focus Ctrl+M Toggle Tab moves focus

Search and replace

Command Shortcut Description
(search | find) Ctrl+F Find
replace Ctrl+H Replace
next find F3 Find next
(prior | previous) find Shift+F3 Find previous
(find | jump [to]) next Function Find next text
(find | jump [to]) previous Function Find previous text
select all occurrences Alt+Enter Select all occurences of Find match
next cursor [<n>] Ctrl+D Add selection to next Find match
skip next cursor [] Ctrl+K Ctrl+D Move last selection to next Find match
toggle case sensitive Alt+C Toggle case-sensitive
toggle regex Alt+R Toggle regex
toggle whole word Alt+W Toggle whole word

Multi-cursor and selection

Command Shortcut Description
Alt+Click Insert cursor
cursor above [<n>] Ctrl+Alt+ ↑ Insert cursor above
cursor below [<n>] Ctrl+Alt+ ↓ Insert cursor below
undo Ctrl+U Undo last cursor operation
Shift+Alt+I Insert cursor at end of each line selected
shackle Ctrl+L Select current line
cursor all Ctrl+Shift+L Select all occurrences of current selection
all current word Ctrl+F2 Select all occurrences of current word
expand [<n>] Shift+Alt+→ Expand selection
shrink [<n>] Shift+Alt+← Shrink selection
Shift+Alt+(drag mouse) Column (box) selection
Ctrl+Shift+Alt+(arrow key) Column (box) selection
tall cursor up Ctrl+Shift+Alt+PgUp Column (box) selection page up
tall cursor down Ctrl+Shift+Alt+PgDn Column (box) selection page down

Rich languages editing

Command Shortcut Description
Ctrl+Space Trigger suggestion
trigger parameter hints Ctrl+Shift+Space Trigger parameter hints
format (doc | document) Shift+Alt+F Format document
format (that | selection) Ctrl+K Ctrl+F Format selection
go to definition F12 Go to Definition
peek definition Alt+F12 Peek Definition
(definition to side | side def) Ctrl+K F12 Open Definition to the side
Ctrl+. Quick Fix
show references Shift+F12 Show References
rename symbol F2 Rename Symbol
trim white Ctrl+K Ctrl+X Trim trailing whitespace
change file language Ctrl+K M Change file language

Editor management

Command Shortcut Description
next tab [<n>] Ctrl+PgDn Open next editor
previous tab [<n>] Ctrl+PgUp Open previous editor
close tab [<n>] Ctrl+F4, Ctrl+W Close editor
close folder Ctrl+K F Close folder
split editor Ctrl+\ Split editor
tab Ctrl+ 1 / 2 / 3 Focus into 1st, 2nd or 3rd editor group
(prior | previous | un) pane Ctrl+K Ctrl+← Focus into previous editor group
next pane Ctrl+K Ctrl+→ Focus into next editor group
Ctrl+Shift+PgUp Move editor left
Ctrl+Shift+PgDn Move editor right
shift group left Ctrl+K ← Move active editor group left
shift group right Ctrl+K → Move active editor group right
move tab left Ctrl+Alt+← Move the current tab to the editor pane on the left
move tab right Ctrl+Alt+→ Move the current tab to the editor pane on the right

File management

Command Shortcut Description
new file Ctrl+N New File
open dialogue Ctrl+O Open File...
save Ctrl+S Save
Save and close Key("c-s/10, c-w") Save and close
save as Ctrl+Shift+S Save As...
save all Ctrl+K S Save All
close editor Ctrl+F4 Close
Ctrl+K Ctrl+W Close All
Ctrl+Shift+T Reopen closed editor
keep [preview] open Ctrl+K Enter Keep preview mode editor open
(recent | R) tab [<n>] Ctrl+Tab Open next
reopen tab [<n>] Ctrl+Shift+Tab Open previous
copy path Ctrl+K P Copy path of active file
windows explorer here Ctrl+K R Reveal active file in Explorer
show active file in new window Ctrl+K O Show active file in new window/instance

Display

Command Shortcut Description
[toggle] full screen F11 Toggle full screen
toggle orientation Shift+Alt+0 Toggle editor layout (horizontal/vertical)
zoom in [<n>] Ctrl+= Zoom in
zoom out [<n>] Ctrl+- Zoom out
sidebar Ctrl+B Toggle Sidebar visibility
explorer Ctrl+Shift+E Show Explorer / Toggle focus
find in files Ctrl+Shift+F Show Search
source control Ctrl+Shift+G Show Source Control
debug Ctrl+Shift+D Show Debug
extensions Ctrl+Shift+X Show Extensions
replace in files Ctrl+Shift+H Replace in files
search details Ctrl+Shift+J Toggle Search details
output panel Ctrl+Shift+U Show Output panel
markdown preview Ctrl+Shift+V Open Markdown preview
markdown preview side Ctrl+K V Open Markdown preview to the side
zen mode Ctrl+K Z Zen Mode (Esc Esc to exit)

Debug

Command Shortcut Description
[toggle] breakpoint F9 Toggle breakpoint
continue, resume F5 Start/Continue
stopper Shift+F5 Stop
step into F11 Step into
step out [of] Shift+F11 Step out
step over [<n>] F10 Step over
(show hover | mouse hover | hover mouse) Ctrl+K Ctrl+I Show hover

Integrated terminal

Command Shortcut Description
[show] terminal Ctrl+` Show integrated terminal
new terminal Ctrl+Shift+` Create new terminal
Ctrl+C Copy selection
Ctrl+V Paste into active terminal
terminal scroll up Ctrl+↑ Scroll up
terminal scroll down Ctrl+↓ Scroll down
terminal page up Shift+PgUp Scroll page up
terminal page down Shift+PgDn Scroll page down
Ctrl+Home / End Scroll to top/bottom

References

Caster vscode_rules files

Visual Studio Code shortcuts pdf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment