Visual Studio Code

Enjoy this cheat sheet at its fullest within Dash, the macOS documentation browser.

Basic Editing

CMD+X

Cut line (empty selection)

editor.action.clipboardCutAction

CMD+C

Copy line (empty selection)

editor.action.clipboardCopyAction

SHIFT+Delete

Cut line

editor.action.cutLines

CMD+SHIFT+K

Delete line

editor.action.deleteLines

CMD+Enter

Insert line below

editor.action.insertLineAfter

CMD+SHIFT+Enter

Insert line above

editor.action.insertLineBefore

ALT+Arrow Down

Move line down

editor.action.moveLinesDownAction

ALT+Arrow Up

Move line up

editor.action.moveLinesUpAction

ALT+SHIFT+Arrow Down

Copy line down

editor.action.copyLinesDownAction

ALT+SHIFT+Arrow Up

Copy line up

editor.action.copyLinesUpAction

CMD+SHIFT+L

Select all occurrences of current selection

editor.action.selectHighlights

CMD+F2

Select all occurrences of current word

editor.action.changeAll

CMD+ALT+Arrow Down

Insert cursor below

editor.action.insertCursorBelow

CMD+ALT+Arrow Up

Insert cursor above

editor.action.insertCursorAbove

CMD+ALT+]

Jump to matching bracket

editor.action.jumpToBracket

CMD+]

Indent line

editor.action.indentLines

CMD+[

Outdent line

editor.action.outdentLines

CMD+Arrow Left

Go to beginning of line

cursorHome

CMD+Arrow Right

Go to end of line

cursorEnd

CMD+Arrow Down

Go to end of file

cursorBottom

CMD+Arrow Up

Go to beginning of file

cursorTop

CMD+/

Toggle line comment

editor.action.commentLine

ALT+SHIFT+A

Toggle block comment

editor.action.blockComment

CMD+F

Find

actions.find

CMD+ALT+F

Replace

editor.action.startFindReplaceAction

CMD+G

Find next

editor.action.nextMatchFindAction

CMD+SHIFT+G

Find previous

editor.action.previousMatchFindAction

CMD+M

Toggle use of tab key for setting focus

editor.action.toggleTabFocusMode

Rich Languages Editing

CTRL+Space

Trigger suggest

editor.action.triggerSuggest

ALT+SHIFT+F

Format code

editor.action.format

F12

Go to definition

editor.action.goToDeclaration

ALT+F12

Peek definition

editor.action.previewDeclaration

CMD+.

Quick fix

editor.action.quickFix

SHIFT+F12

Show references

editor.action.referenceSearch.trigger

F2

Rename symbol

editor.action.rename

CMD+Arrow Down

Replace with next value

editor.action.inPlaceReplace.down

CMD+Arrow Up

Replace with previous value

editor.action.inPlaceReplace.up

CTRL+SHIFT+Arrow Right

Expand ast select

editor.action.smartSelect.grow

CTRL+SHIFT+Arrow Left

Shrink ast select

editor.action.smartSelect.shrink

Navigation

CMD+T

Show all symbols

workbench.action.showAllSymbols

CTRL+G

Go to line...

workbench.action.gotoLine

CMD+P

Go to file...

workbench.action.quickOpen

CMD+SHIFT+O

Go to symbol...

workbench.action.gotoSymbol

CMD+SHIFT+M

Show errors and warnings

workbench.action.showErrorsWarnings

F8

Go to next error or warning

editor.action.marker.next

SHIFT+F8

Go to previous error or warning

editor.action.marker.prev

CMD+SHIFT+P

Show all commands

workbench.action.showCommands

CTRL+Tab

Navigate history

workbench.action.openPreviousEditor

CTRL+-

Go back

workbench.action.navigateBack

CTRL+SHIFT+-

Go forward

workbench.action.navigateForward

Editor/Window Management

CMD+SHIFT+N

New window

workbench.action.newWindow

CMD+SHIFT+W

Close window

workbench.action.closeWindow

CMD+W

Close editor

workbench.action.closeActiveEditor

unassigned

Cycle between opened editors

workbench.action.cycleEditor

CMD+\

Split editor

workbench.action.splitEditor

CMD+1

Focus into left hand editor

workbench.action.focusFirstEditor

CMD+2

Focus into side editor

workbench.action.focusSecondEditor

CMD+3

Focus into right hand editor

workbench.action.focusThirdEditor

CMD+ALT+Arrow Left

Focus into next editor on the left

workbench.action.focusLeftEditor

CMD+ALT+Arrow Right

Focus into next editor on the right

workbench.action.focusRightEditor

File Management

CMD+N

New file

workbench.action.files.newUntitledFile

unassigned

Open file...

workbench.action.files.openFile

CMD+S

Save

workbench.action.files.save

CMD+SHIFT+S

Save all

workbench.action.files.saveAll

CMD+ALT+S

Save as...

workbench.action.files.saveAs

Display

CMD+CTRL+F

Toggle full screen

workbench.action.toggleFullScreen

CMD+=

Zoom in

workbench.action.zoomIn

CMD+-

Zoom out

workbench.action.zoomOut

CMD+SHIFT+D

Show debug

workbench.view.debug

CMD+SHIFT+E

Show explorer

workbench.view.explorer

CMD+SHIFT+F

Show search

workbench.view.search

CMD+SHIFT+C

Open new console

workbench.action.terminal.openNativeConsole

CMD+SHIFT+U

Show output

workbench.action.output.showOutput

CMD+U L

Show omnisharp log

omnisharp.show.generalLog

CMD+U CMD+L

Show omnisharp log to the side

omnisharp.show.generalLogOnSide

CMD+SHIFT+V

Toggle markdown preview

workbench.action.markdown.togglePreview

Debug

F9

Toggle breakpoint

editor.debug.action.toggleBreakpoint

F5

Continue

workbench.action.debug.play

F5

Pause

workbench.action.debug.start

F11

Step into

workbench.action.debug.stepInto

SHIFT+F11

Step out

workbench.action.debug.stepOut

F10

Step over

workbench.action.debug.stepOver

SHIFT+F5

Stop

workbench.action.debug.stop

Tasks

CMD+SHIFT+B

Run build task

workbench.action.tasks.build

CMD+SHIFT+T

Run test task

workbench.action.tasks.test

Notes