Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the shortcut keys for VSCode?

2025-01-15 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is to share with you about what shortcuts VSCode has. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

In daily development, the use of VsCode keyboard shortcuts can improve development efficiency!

Common General press Press function FunctionCtrl + Shift + P F1 display Command Panel Show Command PaletteCtrl + P Quick Open Quick OpenCtrl + Shift+ N New window / instance New window/instanceCtrl + Shift+ W close window / instance Close window/instance basic Editing Basic editing press Press function FunctionCtrl+X cut line (empty selected) Cut line (empty selection) Ctrl+C copy line (empty selected) Copy line (empty selection) Alt+ ↑ / ↓ up / down move line Move line up/downShift+Alt + ↓ / ↑ up / down copy line Copy line up/downCtrl+Shift+K delete line Delete lineCtrl+Enter insert line below Insert line belowCtrl+Shift+Enter insert line Insert line aboveCtrl+Shift+\ jump to matching parentheses Jump to matching bracketCtrl+] / [indent / indent to Indent/outdent lineHome go to the beginning of the line Go to beginning of lineEnd go to the end of the line Go to end of lineCtrl+Home go to the beginning of the file go to the end of the file Go to beginning of fileCtrl+End go to the end of the file Go to end of fileCtrl+ ↑ / ↓ up / down scroll line Scroll line up/downAlt+PgUp / PgDown up / down Scroll page Scroll page up/downCtrl+Shift+ [collapse (collapse) region Fold (collapse) regionCtrl+Shift+] expand (uncollapsed) region Unfold (uncollapse) regionCtrl+K Ctrl+ [collapse (unfold) all subregions Fold (collapse) all subregionsCtrl+K Ctrl+] expand (unfold) all subregions Unfold (uncollapse) all subregionsCtrl+K Ctrl+0 collapse (collapse) all regions Fold (collapse) all regionsCtrl+K Ctrl+J expand (unfold) all regions Unfold (uncollapse) all regionsCtrl+K Ctrl+C add line comment Add Line commentCtrl+K Ctrl+U delete line comments Remove line commentCtrl+/ toggle line comments Toggle line commentShift+Alt+A toggle block comments Toggle block commentAlt+Z toggle line wrap Toggle word wrap

"

Navigate Navigation by Press function FunctionCtrl + T shows all symbols Show all SymbolsCtrl + G go to line. Go to Line...Ctrl + P go to file... Go to File...Ctrl + Shift + O go to symbol. Go to Symbol...Ctrl + Shift + M display problem panel Show Problems panelF8 go to next error or warning Go to next error or warningShift + F8 go to previous error or warning Go to previous error or warningCtrl + Shift + Tab Navigation Editor Group History Navigate editor group historyAlt + ← / → return / forward Go back / forwardCtrl + M Toggle tab move focus Toggle Tab moves focus search and replace Search and replace find FindCtrl + H by Press function FunctionCtrl + F Replace ReplaceF3 / Shift + F3 find next / previous Find next/previousAlt + Enter Select find all occurrences Select all occurences of Find matchCtrl + D add the selection to the next find match Add selection to next Find matchCtrl + K Ctrl + D move the last selection to the next find match Move last selection to next Find matchAlt + C / R / W Toggle case sensitive / regular expression / whole word Toggle case-sensitive / regex / whole Word Multi-cursor and selection Multi-cursor and selection press Press function FunctionAlt + Click insert cursor Insert cursorCtrl + Alt + ↑ / ↓ insert cursor Insert cursor above / belowCtrl + U undo previous cursor operation Undo last cursor operationShift + Alt + I insert cursor Insert cursor at end of each line selectedCtrl + I at the end of each selected line select current line Select current lineCtrl + Shift + L Select all currently selected Select all occurrences of current selectionCtrl + F2 selections Select all occurrences of the current word Select all occurrences of current wordShift + Alt + → expand select Expand selectionShift + Alt + ← shrink select Shrink selectionShift + Alt + (drag mouse) column (box) Select Column (box) selectionCtrl + Shift + Alt + (arrow key) column (box) select Column (box) selectionCtrl + Shift + Alt + PgUp / PgDown column (box) Select top / bottom Column (box) selection page up/down rich language editing Rich languages editing press Press function FunctionCtrl + empty Lattice trigger suggestion Trigger suggestionCtrl + Shift + Space trigger parameters prompt Trigger parameter hintsTabEmmet to expand the abbreviation Emmet expand abbreviationShift + Alt + F format document Format documentCtrl + K Ctrl + F format Format selectionF12 to define Go to DefinitionAlt + F12Peek definition Peek DefinitionCtrl + K F12 Open definition to Edge Open Definition to the sideCtrl +. Quickly solve Quick FixShift + F12 display reference Show ReferencesF2 rename symbol Rename SymbolCtrl + Shift +. Replace with next / previous value Replace with next/previous valueCtrl + K Ctrl+ X trim trailing space Trim trailing whitespaceCtrl + km change file language Change file language editor manage Editor management press Press function FunctionCtrl+F4, Ctrl+W close editor Close editorCtrl+K F close folder Close folderCtrl+\ split editor Split editorCtrl+ 1 / 2 / 3 focus on first Second or third editor group Focus into 1st, 2nd or 3rd editor groupCtrl+K Ctrl+ ← / → focus on previous / next editor group Focus into previous/next editor groupCtrl+Shift+PgUp / PgDown move editor Move editor left/rightCtrl+K ← / → mobile active editor group Move active editor group file management File management press Press function FunctionCtrl+N new file New FileCtrl+O to open file. Open File...Ctrl+S Save SaveCtrl+Shift+S Save as... Save As...Ctrl+K S all Save Save AllCtrl+F4 close CloseCtrl+K Ctrl+W close all Close AllCtrl+Shift+T reopen closed editor Reopen closed editorCtrl+K input keep open Enter Keep OpenCtrl+Tab Open next Open nextCtrl+Shift+Tab Open path to the last Open previousCtrl+K P copy active file Copy path of active fileCtrl+K R display active file in Explorer Reveal active file in ExplorerCtrl+K O display active file in new window / instance Show active file in new window/instance display Display press Press function FunctionF11 Toggle full screen Toggle full screenShift+Alt+1 Toggle Editor layout Toggle editor layoutCtrl+ = /-Zoom in / out Zoom in/outCtrl+B Sidebar visibility Toggle Sidebar visibilityCtrl+Shift+E display browser / Toggle focus Show Explorer / Toggle focusCtrl+Shift+F display search Show SearchCtrl+Shift+G display Git Show GitCtrl+Shift+D display Debug Show DebugCtrl+Shift+X display extended Show ExtensionsCtrl+Shift+H replacement File Replace in filesCtrl+Shift+J Toggle search details Toggle Search detailsCtrl+Shift+C Open New Command prompt / Terminal Open new command prompt/terminalCtrl+Shift+U display input Out panel Show Output panelCtrl+Shift+V switch Markdown Preview Toggle Markdown previewCtrl+K V from next to open Markdown Preview Open Markdown preview to the side Debug Debug press Press function FunctionF9 switch breakpoint Toggle breakpointF5 start / continue Start/ContinueShift+F5 stop StopF11 / Shift+F11 next / previous step Step into/outF10 skip Step overCtrl+K Ctrl+I display Show hover integrated terminal Integrated terminal press Press function FunctionCtrl+ `display integrated terminal Show integrated terminalCtrl+Shift+ `create new terminal Create new terminalCtrl+Shift+C copy selected Copy selectionCtrl+Shift+V paste to active terminal Paste Into active terminalCtrl+ ↑ / ↓ scroll up / down Scroll up/downShift+PgUp / PgDown scroll up / down page Scroll page up/downCtrl+Home / End scroll to the top / bottom Scroll to top/bottom thank you for reading! This is the end of this article on "what are the shortcut keys for VSCode?". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report