https://code.visualstudio.com/docs/getstarted/keybindings
Visual Studio Code lets you perform most tasks directly from the keyboard.
Table of Contents
⌃: Control⇧: Shift⌥: Option⌘: Comamnd
⌘P: Quick Open⇧⌘P: Show All Commands (>)⌘T: Show All Symbols (#)⇧⌘O: Go to Symbol (@)- Type
:to group symbols.
- Type
⌃G: Go to Line (:)⌃-: Go Back⌃⇧-: Go Forward
Note: Show All Symbols command can be less usable if your project imports many dependencies. (microsoft/vscode#46718)
- Show all commands.
- Type 'Open Recent' and run
File: Open Recent...command. - Open any projects.
- Run
Quick Opencommand and type#to show all symbols. - Go to any function with name (like
deleteUser). - Run
Go to Symbolcommand and type:to group symbols. - Go to any function.
- Go back.
- Go forward.
- Go to line 1.
⌘B: Toggle Sidebar⌘J: Toggle Integrated Terminal⌃`: Focus/Toggle Integrated Terminal⇧⌘E: Show Explorer⇧⌘F: Show Search⌘K Z: Toggle Zen Mode
⌥⌘→: Focus into next editor⌥⌘←: Focus into next editor⌘\: Split⌘1: Focus into first editor group⌘2: Focus into second editor group
⌃⌘→: Into Next Group⌃⌘←: Into Previous Group
⌘W: This⌘K W: Group⌘K ⌘W: All⇧⌘T: Reopen
- Split this editor twice.
- Focus into second editor group.
- Open
code.js. - Move code.js to third editor group.
- Close third editor group.
- Close all editor groups.
⌘Enter: Insert Line Above⇧⌘Enter: Insert Line Below⌥↓: Move Line Down⌥↑: Move Line Up
- Insert a line (cursor here) below and type
3. Done.. - Move this line up.
⌘F + ⌘G: Select Next⌘D: Add Selection To Next Find Match⇧⌘L: Select all occurrences of current selection⌃⌥→: Move Cursor to next word part⌃⌥←: Move Cursor previous word part⌃⇧⌥→: Select to next word part⌃⇧⌥←: Select to previous word part⌘U: Undo last cursor operation
- Select next 😃.
- Select all 😃 and delete them.
- 😃R😃e😃m😃o😃v😃e
NotfromshortcutsWillNotMakeYourMoreProductive.
⌥⌘↓: Insert Cursor Below⌥⌘↑: Insert Cursor Above⌥ + click: Insert Cursor
- Change first character of the below lines to upper case.
- remove emojis in the line below with inserting cursor with click.
- go😂od j🧘🏻♂️o🌍b!
- Open
Keyboard Shortcutswith⌘K ⌘S. - Click
Open Keyboard Shortcuts (JSON)on the right top corner. - Copy & paste the code below in the JSON array.
- Use
⌃⌥↓to go to 5 lines below.
{
"key": "ctrl+alt+up",
"command": "cursorMove",
"args": {
"to": "up",
"by": "line",
"value": 5
},
"when": "editorTextFocus"
},
{
"key": "ctrl+alt+down",
"command": "cursorMove",
"args": {
"to": "down",
"by": "line",
"value": 5
},
"when": "editorTextFocus"
}