VSCode shortcut keys
FavVS Code Shortcut Search
1. Visual Studio Code (abbreviated as VS Code) is a modern, lightweight source code editor developed by Microsoft and released as open-source software.
2. VS Code supports multiple programming languages and offers a wealth of features and extensibility, making it one of the preferred development tools for many developers.
3. This guide carefully compiles and organizes commonly used shortcuts for the VS Code editor, including shortcuts for both the Windows and macOS versions of VS Code.
4. Mastering these shortcuts can significantly boost development efficiency, reduce mouse usage, and allow you to focus more on writing code.
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + Shift + P,F1 | Show Command Panel |
| Ctrl + P | Quick open, go to file... |
| Ctrl + Shift + N | New window/example |
| Ctrl + Shift + W | Close window/example |
| Ctrl + , | Editor settings |
| Ctrl + K,Ctrl + S | Keyboard Shortcuts |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + X | Cut a line (when not selected) |
| Ctrl + C | Copy a line (when not selected) |
| Alt + ↑ | Moving up the rows |
| Alt + ↓ | Moving down the rows |
| Shift + Alt + ↑ | Copy the current line above |
| Shift + Alt + ↓ | Copy the current line below |
| Ctrl + Shift + K | Delete a line |
| Ctrl + Enter | Insert the following line |
| Ctrl + Shift + Enter | Insert line above |
| Ctrl + Shift + \ | Jump to matching brackets |
| Ctrl + ] | Add indentation |
| Ctrl + [ | Reduced 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 document |
| Ctrl + End | Go to end of document |
| Ctrl + ↑ | Scroll up rows |
| Ctrl + ↓ | Scroll down rows |
| Alt + PgUp | Scroll up the page |
| Alt + PgDn | Scroll down the page |
| Ctrl + Shift + [ | folding area |
| Ctrl + Shift + ] | Unfolding area |
| Ctrl + K,Ctrl + [ | Collapse all sub-areas |
| Ctrl + K,Ctrl + ] | Expand all sub-areas |
| Ctrl + K,Ctrl + 0 | Collapse all regions |
| Ctrl + K,Ctrl + J | Expand all areas |
| Ctrl + K,Ctrl + C | Adding line comments |
| Ctrl + K,Ctrl + U | Remove line comments |
| Ctrl + / | Toggle line comment |
| Shift + Alt + A | Toggle block annotations |
| Alt + Z | Toggle auto line feed |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + T | Show all symbols |
| Ctrl + G | Show all symbols |
| Ctrl + P | Go to file... |
| Ctrl + Shift + O | Go to symbols... |
| Ctrl + Shift + M | Show Problem Panel |
| F8 | Go to the next error or warning |
| Shift + F8 | Go to previous error or warning |
| Ctrl + Shift + Tab | Browse the history of the editor group |
| Alt + ← | be back |
| Alt + → | advance |
| Ctrl + M | Toggle tab to move focus |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + F | find |
| Ctrl + H | interchangeability |
| F3 | Find Next |
| Shift + F3 | Find Previous |
| Alt + Enter | Select all matches |
| Ctrl + D | Add selection to the next search match |
| Ctrl + K,Ctrl + D | Move the previous selection to the next search match |
| Alt + C | Toggle case-sensitive or not |
| Alt + R | Toggles whether the regular expression |
| Alt + W | Toggles whether or not the whole word matches |
| (computer) shortcut key | clarification |
|---|---|
| Alt + (mouse click) | Insert Cursor |
| Ctrl + Alt + ↑ | Insert cursor above |
| Ctrl + Alt + ↓ | Insert 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 line |
| Ctrl + Shift + L | Select all current selections |
| Ctrl + F2 | Select all occurrences of the current word |
| Shift + Alt + → | Extended Options |
| Shift + Alt + ← | Shrinkage Selection |
| Shift + Alt + (拖曳鼠标) | Column (box) selection |
| Ctrl + Shift + Alt + (arrow keys) | Column (box) selection |
| Ctrl + Shift + Alt + PgUp | Selecting pages to the front column (box) |
| Ctrl + Shift + Alt + PgDn | Backward column (box) selection page |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + Space | Show member list |
| Ctrl + Shift + Space | Display parameter prompts |
| Shift + Alt + F | Formatting Code |
| Ctrl + K,Ctrl + F | Formatting Options |
| F12 | Go to Definitions |
| Alt + F12 | View Definitions |
| Ctrl + K,F12 | Open the definition on the side |
| Ctrl + . | Quick Fix |
| Shift + F12 | Show Reference |
| F2 | Rename Symbol |
| Ctrl + K,Ctrl + X | Remove the space at the end of each line |
| Ctrl + K,M | Switching Code Languages |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + F4,Ctrl + W | Close the editor |
| Ctrl + K,F | Close the folder |
| Ctrl + \ | Split Editor |
| Ctrl + 1 | Let the first editor group get the spotlight |
| Ctrl + 2 | Getting the second editor group to get focus |
| Ctrl + 3 | Getting the third editor group to get focus |
| Ctrl + K,Ctrl + ← | Let the previous editor group get the focus |
| Ctrl + K,Ctrl + → | Let the next editor group get the focus |
| Ctrl + K,← | Move the current editor group to the left |
| Ctrl + K,→ | Move the current editor group to the right |
| Ctrl + Shift + PgUp | Moving the editor to the left |
| Ctrl + Shift + PgDn | Move the editor to the right |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + N | New file |
| Ctrl + O | Open file... |
| Ctrl + S | Save file |
| Ctrl + Shift + S | save file as ... |
| Ctrl + K,S | Save All |
| Ctrl + F4 | Close file |
| Ctrl + K,Ctrl + W | Close all files |
| Ctrl + Shift + T | Reopen the closed 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 | Copying the path to the active file |
| Ctrl + K,R | Show active files in Explorer |
| Ctrl + K,O | Open the currently active file in a new window/instance |
| (computer) shortcut key | clarification |
|---|---|
| F11 | Toggle full screen |
| Shift + Alt + 0 | Toggle editor layout (horizontal/vertical) |
| Ctrl + = | Zoom Editor |
| Ctrl + - | Zoom Editor |
| Ctrl + B | Show/hide sidebar |
| Ctrl + Shift + E | Show Explorer/Toggle Focus |
| Ctrl + Shift + F | Show Find |
| Ctrl + Shift + G | Display source code control |
| Ctrl + Shift + D | Show debugging |
| Ctrl + Shift + X | Display Expansion |
| Ctrl + Shift + H | Substitute |
| Ctrl + Shift + J | Toggle 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 Esc 2 times to exit) |
| (computer) shortcut key | clarification |
|---|---|
| F9 | Insert breakpoints |
| F5 | Start/Continue |
| Shift + F5 | cessation |
| F11 | stepper |
| Shift + F11 | step out |
| F10 | step over |
| Ctrl + K,Ctrl + I | Display Hover |
| (computer) shortcut key | clarification |
|---|---|
| Ctrl + ` | Display integrated terminals |
| Ctrl + Shift + ` | Creating a new terminal |
| Ctrl + C | Copy Selection |
| Ctrl + V | Paste to 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 |
| (computer) shortcut key | clarification |
|---|---|
| Command + Shift + P, F1 | Show Command Panel |
| Command + P | Quick open, go to file... |
| Command + Shift + N | New window/example |
| Command + W | Close window/example |
| Command + , | Editor settings |
| Command + K, Command + S | Keyboard Shortcuts |
| (computer) shortcut key | clarification |
|---|---|
| Command + X | Cut a line (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 the following line |
| Command + Shift + Enter | Insert line above |
| Command + Shift + \ | Jump to matching brackets |
| Command + ] | Add indentation |
| Command + [ | Reduced indentation |
| Home | Go to the beginning of the line |
| End | go to the end of the line |
| Command + ↑ | Go to the beginning of the document |
| Command + ↓ | Go to end of document |
| Control + Fn + ↑ | Scroll up rows |
| Control + Fn + ↓ | Scroll down rows |
| Command + Fn + ↑ | Scroll up the page |
| Command + Fn + ↓ | Scroll down the page |
| Command + Option + [ | folding area |
| Command + Option + ] | Unfolding area |
| Command + K, Command + [ | Collapse all sub-areas |
| Command + K, Command + ] | Expand all sub-areas |
| Command + K, Command + 0 | Collapse all regions |
| Command + K, Command + J | Expand all areas |
| Command + K, Command + C | Adding line comments |
| Command + K, Command + U | Remove line comments |
| Command + / | Toggle line comment |
| Shift + Option + A | Toggle block annotations |
| Option + Z | Toggling the editor's automatic line feed |
| (computer) shortcut key | clarification |
|---|---|
| Command + T | Show all symbols |
| Control + G | Moving to the line... |
| Command + P | Go to file... |
| Command + Shift + O | Go to symbols... |
| Command + Shift + M | Show Problem Panel |
| F8 | Go to the next error or warning |
| Shift + F8 | Go to previous error or warning |
| Control + Shift + Tab | Show editor history |
| Control + - | be back |
| Control + Shift + - | advance |
| Control + Shift + M | Toggle tab to move focus |
| (computer) shortcut key | clarification |
|---|---|
| Control + Space | Trigger recommendations |
| Command + Shift + Space | Trigger parameter prompts |
| Shift + Option + F | Formatting documents |
| Command + K, Command + F | Formatting Options |
| F12 | Go to Definitions |
| Option + F12 | View Definitions |
| Command + K, F12 | Open the definition on the side |
| Command + . | Quick Fix |
| Shift + F12 | Show Reference |
| F2 | Rename Symbol |
| Command + K, Command + X | Trimming trailing spaces |
| Command + K, M | Change document language |
| (computer) shortcut key | clarification |
|---|---|
| Command + W | Close the editor |
| Command + K, F | Close the folder |
| Command + \ | Split Editor |
| Command + 1 | Let the first editor group get the spotlight |
| Command + 2 | Getting the second editor group to get focus |
| Command + 3 | Getting the third editor group to get focus |
| Command + K, ← | Get focus on the previous editor group |
| Command + K, → | Get focus on the next editor group |
| (computer) shortcut key | clarification |
|---|---|
| Command + N | New file |
| Command + O | Open file... |
| Command + S | Save file |
| Command + Shift + S | save file as ... |
| Command + Option + S | Save All |
| Command + W | Close the current file |
| Command + K, Command + W | Close all files |
| Command + Shift + T | Reopening closed files |
| 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 | Copying the path to the active file |
| Command + K, R | Show active files in Explorer |
| Command + K, O | Show active file in new window/instance |
| (computer) shortcut key | clarification |
|---|---|
| Command + Control + F | Toggle full screen |
| Command + Option + 0 | Toggle editor layout (horizontal/vertical) |
| Command + = | Zoom Editor |
| Command + - | Zoom Editor |
| Command + B | Show/hide sidebar |
| Command + Shift + E | Show Explorer/Toggle Focus |
| Command + Shift + F | Show Find |
| Control + Shift + G | Display source code control |
| Command + Shift + D | Show debugging |
| Command + Shift + X | Display Expansion |
| Command + Shift + H | Replace in the file |
| Command + Shift + J | Toggle 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 Esc 2 times to exit) |
| (computer) shortcut key | clarification |
|---|---|
| F9 | breakpoint |
| F5 | Start/Continue |
| F11 | stepper |
| Shift + F11 | step out |
| F10 | step over |
| Shift + F5 | cessation |
| Command + K, Command + I | Display Hover |
| (computer) shortcut key | clarification |
|---|---|
| Control + ` | Display integrated terminals |
| Control + Shift + ` | Creating a new terminal |
| Command + C | Copy Selection |
| Command + ↑ | Scroll up |
| Command + ↓ | Scroll down |
Recommended Tools
Audio Rewind Tool
Rewind the audio online and download the processed audio locally.
Seven Lottery Machine Selection Tool
Seven lottery online machine random number selection tool
volumetric capacity converter
Volumetric capacity (volume) online conversion tool
CSS Graphic Crop Path Tool
Online CSS clip-path code online debugging tool
The Complete Book of Couplets
A large collection of couplets, searchable for queries
Inquiry on the 24 Solar Terms
Check the time of the 24 solar terms for any year online
Fart Sound Simulation
Online fart sound simulation tool
CSS compression/formatting
CSS code online compression formatting tool
XML compression/formatting
XML online compression/decompression formatting tool
Stroke Practice for Chinese Characters
Chinese Stroke Order Practice Tool
HTML escape processing tools
HTML online transfer/anti-transpose processing tool
Oversized file line counting tool
Line counting for very large files
The Ching Mung Chart for Boys and Girls
Predicting the birth of a boy or a girl in the Qing Palace Collection
Arabic numerals to English
Online Arabic Numerals to English Tool
PDF file merger
Combine multiple PDF files into one PDF file online
Cell phone number attribution search
Online cell phone number attribution search widget
Online Speaker (Horn) Cleaning Tool
One-click dusting of your phone's speakers
conversion of Chinese characters into pinyin (Chinese romanization system)
Hanzi to Pinyin Processing Tool
Surround the kitten.
Surround the kitten game online
Body Surface Area Calculator
Calculate your body surface area based on your weight and height
SVG to PNG Image
Convert svg image to png image online
Text Line Break Conversion Line Tool
Convert line breaks in text to newlines online
Text to Binary Conversion Tool
Online text-to-binary conversion tool
Chinese Traditional and Simplified Conversion
Simplified Chinese/Traditional Simplified Chinese online conversion tool
























粤ICP备2021116614号