shortcuts

VS Code Shortcuts

Genveje til navigation, editing, terminal og debug.

VS CodeShortcuts

VS Code Shortcuts

Ofte brugte tastaturgenveje i Visual Studio Code.

Editing & Navigation

  • Ctrl+Shift+P

    Command Palette

  • Ctrl+P

    Quick Open file

  • Ctrl+Shift+O

    Go to Symbol in file

  • F12

    Go to Definition

  • Shift+F12

    Show references

  • Ctrl+D

    Select next occurrence

  • Ctrl+Alt+Shift+J

    Select all occurrences

  • Alt+Click

    Add multi-cursor

  • Alt+Up/Down

    Move line up/down

  • Shift+Alt+Up/Down

    Copy line up/down

  • Ctrl+Shift+K

    Delete line

  • Ctrl

    Toggle line comment

  • Shift+Alt+A

    Toggle block comment

  • Shift+Alt+F

    Format document

Search & Files

  • Ctrl+F

    Find in file

  • Ctrl+H

    Replace in file

  • Ctrl+Shift+F

    Find in workspace

  • Ctrl+Shift+H

    Replace in workspace

  • Ctrl+P

    Quick Open file

  • Ctrl+E

    Recent files

  • Ctrl+B

    Toggle sidebar

  • Ctrl+N

    New file

  • Ctrl+S

    Save file

  • Ctrl+KthenS

    Save all files

Refactor & Code Actions

  • Ctrl+.

    Quick Fix / Code Action

  • F2

    Rename symbol

  • Ctrl+Shift+R

    Refactor

  • Shift+F12

    Find references

  • Ctrl+KthenCtrl+F

    Format selection

Terminal

  • Ctrl+`

    Toggle terminal

  • Ctrl+Shift+`

    New terminal

  • Ctrl+J

    Toggle panel

  • Ctrl+Shift+C

    Open terminal

Debugging

  • F5

    Start / Continue debugging

  • Shift+F5

    Stop debugging

  • F9

    Toggle breakpoint

  • F10

    Step Over

  • F11

    Step Into

  • Shift+F11

    Step Out

Workspace

  • Ctrl+KthenZ

    Zen Mode

  • Alt+Z

    Word Wrap

  • Ctrl+,

    Open Settings

  • Ctrl+KthenCtrl+S

    Keyboard Shortcuts

  • Ctrl+Shift+E

    Explorer

  • Ctrl+Shift+G

    Source Control