Online Toolbox
switching mode
tool collection
put it on the desktop
inclusion application
tool search

vs code shortcut key query

query

VSCode Shortcut key Introduction

about vs code shortcut keys:

1. visual studio code (vs code for short) is a modern lightweight source code editor developed by microsoft and open source.

2. vs code supports multiple programming languages ​​and has rich functions and extensibility, making it one of the preferred development tools for many developers.

3. this tool carefully collects and organizes the shortcut keys commonly used in the vs code editor, including the shortcut keys for vs code windows version and the shortcut keys for vs code macos version.

4. proficient in mastering these shortcut keys can greatly improve development efficiency, reduce mouse operations, and allow you to focus more on code writing.

win version of vscode global shortcut keys
shortcut key illustrate
Ctrl + Shift + P,F1 show command panel
Ctrl + P quickly open and go to the file...
Ctrl + Shift + N create a new window/instance
Ctrl + Shift + W close window/instance
Ctrl + , editor settings
Ctrl + K,Ctrl + S keyboard shortcuts
basic editing of win version vscode
shortcut key illustrate
Ctrl + X cut a row (when not selected)
Ctrl + C copy a line (when not selected)
Alt + ↑ move the row upwards
Alt + ↓ move the row down
Shift + Alt + ↑ copy the current line above
Shift + Alt + ↓ copy the current line below
Ctrl + Shift + K delete a line
Ctrl + Enter insert rows below
Ctrl + Shift + Enter insert rows above
Ctrl + Shift + \ jump to matching brackets
Ctrl + ] increase indentation
Ctrl + [ reduce indentation
Home go to the beginning of the line
End go to the end of the line
Ctrl + Home go to the beginning of the file
Ctrl + End go to the end of the file
Ctrl + ↑ scroll up the line
Ctrl + ↓ scroll down the line
Alt + PgUp scroll up the page
Alt + PgDn scroll down the page
Ctrl + Shift + [ folding area
Ctrl + Shift + ] expand area
Ctrl + K,Ctrl + [ fold all sub-regions
Ctrl + K,Ctrl + ] expand all sub-regions
Ctrl + K,Ctrl + 0 fold all areas
Ctrl + K,Ctrl + J expand all areas
Ctrl + K,Ctrl + C add line comments
Ctrl + K,Ctrl + U delete line comments
Ctrl + / toggle line comments
Shift + Alt + A switch block comments
Alt + Z switch automatic line wrap
vscode navigation function for win version
shortcut key illustrate
Ctrl + T show all symbols
Ctrl + G show all symbols
Ctrl + P go to file...
Ctrl + Shift + O go to symbol...
Ctrl + Shift + M show the problem panel
F8 go to the next error or warning
Shift + F8 go to the previous error or warning
Ctrl + Shift + Tab browse the editor group history
Alt + ← back
Alt + → go ahead
Ctrl + M switch the tag to move focus
win version of vscode search & replacement
shortcut key illustrate
Ctrl + F find
Ctrl + H replace
F3 find the next one
Shift + F3 find the previous one
Alt + Enter select all matches
Ctrl + D add selection to the next lookup match
Ctrl + K,Ctrl + D move the previous selection to the next lookup match
Alt + C toggle whether it is case sensitive
Alt + R toggle whether to regular expression
Alt + W switch whether the full word matches
win version vscode multi-cursor & selection
shortcut key illustrate
alt + (mouse click) insert the cursor
Ctrl + Alt + ↑ insert the cursor above
Ctrl + Alt + ↓ insert the cursor below
Ctrl + U undo the previous cursor operation
Shift + Alt + I insert the cursor at the end of each selected line
Ctrl + L select the current row
Ctrl + Shift + L select all current selections
Ctrl + F2 select all current words that appear
Shift + Alt + → extended selection
Shift + Alt + ← shrink selection
shift + alt + (drag and mouse) column (box) selection
ctrl + shift + alt + (arrow keys) column (box) selection
Ctrl + Shift + Alt + PgUp select a page to the front column (box)
Ctrl + Shift + Alt + PgDn select page in the back column (box)
win version of vscode code editing
shortcut key illustrate
Ctrl + Space show member list
Ctrl + Shift + Space display parameter prompts
Shift + Alt + F format code
Ctrl + K,Ctrl + F format selection
F12 go to definition
Alt + F12 view definition
Ctrl + K,F12 open the definition on the side
Ctrl + . quick fix
Shift + F12 display reference
F2 rename symbols
Ctrl + K,Ctrl + X delete the end of each line space
Ctrl + K,M switch code language
win version of vscode editor management
shortcut key illustrate
Ctrl + F4,Ctrl + W close the editor
Ctrl + K,F close the folder
Ctrl + \ split editor
Ctrl + 1 let the first editor group get focus
Ctrl + 2 let the second editor group get focus
Ctrl + 3 let the third editor group get focus
Ctrl + K,Ctrl + ← let the previous editor group get focus
Ctrl + K,Ctrl + → let the next editor group get focus
Ctrl + K,← move the current editor group to the left
Ctrl + K,→ move the current editor group to the right
Ctrl + Shift + PgUp move the editor to the left
Ctrl + Shift + PgDn move the editor to the right
win version of vscode file management
shortcut key illustrate
Ctrl + N create a new file
Ctrl + O open the file...
Ctrl + S save the file
Ctrl + Shift + S save the file as...
Ctrl + K,S save all
Ctrl + F4 close the file
Ctrl + K,Ctrl + W close all files
Ctrl + Shift + T reopen and close the editor
Ctrl + K,Enter keep the preview mode editor open
Ctrl + Tab open the next file
Ctrl + Shift + Tab open the previous file
Ctrl + K,P copy the path to the active file
Ctrl + K,R display active files in explorer
Ctrl + K,O open the currently active file in a new window/instance
win version vscode display
shortcut key illustrate
F11 switch full screen
Shift + Alt + 0 toggle editor layout (horizontal/vertical)
Ctrl + = amplification editor
Ctrl + - zoom out the editor
Ctrl + B show/hide sidebar
Ctrl + Shift + E show explorer/switch focus
Ctrl + Shift + F show search
Ctrl + Shift + G display source code control
Ctrl + Shift + D show debugging
Ctrl + Shift + X show extensions
Ctrl + Shift + H replace in the file
Ctrl + Shift + J switch search details
Ctrl + Shift + U display output panel
Ctrl + Shift + V open markdown preview
Ctrl + K,V open markdown preview on the side
Ctrl + K,Z zen mode (press 2 times esc to exit)
win version vscode debug debugging
shortcut key illustrate
F9 insert breakpoint
F5 start/continue
Shift + F5 stop
F11 stepping
Shift + F11 step out
F10 step by step
Ctrl + K,Ctrl + I show hover
win version of vscode terminal (terminal)
shortcut key illustrate
Ctrl + ` display integrated terminal
Ctrl + Shift + ` create a new terminal
Ctrl + C copy selection
Ctrl + V paste to the active terminal
Ctrl + ↑ scroll up
Ctrl + ↓ scroll down
Shift + PgUp scroll up the page
Shift + PgDn scroll down the page
Ctrl + Home scroll to top
Ctrl + End scroll to the bottom
global shortcut keys for vscode for macos
shortcut key illustrate
Command + Shift + P, F1 show command panel
Command + P quickly open and go to the file...
Command + Shift + N create a new window/instance
Command + W close window/instance
Command + , editor settings
Command + K, Command + S keyboard shortcuts
basic editing of vscode for macos
shortcut key illustrate
Command + X cut a row (when not selected)
Command + C copy a line (when not selected)
Option + ↑ move the current line up
Option + ↓ move the current line down
Shift + Option + ↑ copy the line above
Shift + Option + ↓ copy the line below
Command + Shift + K delete a line
Command + Enter insert rows below
Command + Shift + Enter insert rows above
Command + Shift + \ jump to matching brackets
Command + ] increase indentation
Command + [ reduce indentation
Home go to the beginning of the line
End go to the end of the line
Command + ↑ go to the beginning of the file
Command + ↓ go to the end of the file
Control + Fn + ↑ scroll up the line
Control + Fn + ↓ scroll down the line
Command + Fn + ↑ scroll up the page
Command + Fn + ↓ scroll down the page
Command + Option + [ folding area
Command + Option + ] expand area
Command + K, Command + [ fold all sub-regions
Command + K, Command + ] expand all sub-regions
Command + K, Command + 0 fold all areas
Command + K, Command + J expand all areas
Command + K, Command + C add line comments
Command + K, Command + U delete line comments
Command + / toggle line comments
Shift + Option + A switch block comments
Option + Z switch editor's automatic line wrap
vscode navigation function for macos
shortcut key illustrate
Command + T show all symbols
Control + G go to line...
Command + P go to file...
Command + Shift + O go to symbol...
Command + Shift + M show the problem panel
F8 go to the next error or warning
Shift + F8 go to the previous error or warning
Control + Shift + Tab show editor history
Control + - back
Control + Shift + - go ahead
Control + Shift + M switch the tag to move focus
vscode code editing for macos
shortcut key illustrate
Control + Space trigger suggestions
Command + Shift + Space trigger parameter prompt
Shift + Option + F format the file
Command + K, Command + F format selection
F12 go to definition
Option + F12 view definition
Command + K, F12 open the definition on the side
Command + . quick fix
Shift + F12 display reference
F2 rename symbols
Command + K, Command + X trim trailing spaces
Command + K, M change the file language
vscode editor management for macos
shortcut key illustrate
Command + W close the editor
Command + K, F close the folder
Command + \ split editor
Command + 1 let the first editor group get focus
Command + 2 let the second editor group get focus
Command + 3 let the third editor group get focus
Command + K, ← get focus on the previous editor group
Command + K, → get focus on the next editor group
vscode file management for macos
shortcut key illustrate
Command + N create a new file
Command + O open the file...
Command + S save the file
Command + Shift + S save the file as...
Command + Option + S save all
Command + W close the current file
Command + K, Command + W close all files
Command + Shift + T reopen the closed file
Command + K, Enter keep the preview mode editor open
Control + Tab open the next file
Control + Shift + Tab open the previous file
Command + K, P copy the path to the active file
Command + K, R display active files in explorer
Command + K, O show active files in new window/instance
vscode display for macos
shortcut key illustrate
Command + Control + F switch full screen
Command + Option + 0 toggle editor layout (horizontal/vertical)
Command + = amplification editor
Command + - zoom out the editor
Command + B show/hide sidebar
Command + Shift + E show explorer/switch focus
Command + Shift + F show search
Control + Shift + G display source code control
Command + Shift + D show debugging
Command + Shift + X show extensions
Command + Shift + H replace in file
Command + Shift + J switch search details
Command + Shift + U display output panel
Command + Shift + V open markdown preview
Command + K, V open markdown preview on the side
Command + K, Z zen mode (press 2 times esc to exit)
macos version vscode debug debugging
shortcut key illustrate
F9 breakpoint
F5 start/continue
F11 stepping
Shift + F11 step out
F10 step by step
Shift + F5 stop
Command + K, Command + I show hover
vscode terminal for macos (terminal)
shortcut key illustrate
Control + ` display integrated terminal
Control + Shift + ` create a new terminal
Command + C copy selection
Command + ↑ scroll up
Command + ↓ scroll down
Internet Business Promoter