Tag Archives: shortcuts

Visual studio code shortcut

The main command box
The most important function is the Command Panel opened by F1 or Ctrl+Shift+P. In this command box, you can execute any command of VSCode and even close the editor.
Pressing Backspace will take you to Ctrl+P mode
Type> under Ctrl+P; You can go back to Ctrl+Shift+P.
It’s fine under the Ctrl+P window
Type the file name directly and jump to the file
?List the currently executable actions! Errors or Warnings. Or Ctrl+Shift+M: skip to line number, or Ctrl+G to @: skip to Symbol (search for a variable or function), or Ctrl+Shift+O to @: skip to Symbol by category and find an attribute or function, or Ctrl+Shift+O to: enter # find Symbol by name, or Ctrl+T
Common Shortcuts
 
Editor and window management
Open multiple Windows at once (view multiple projects)
Open a new window: Ctrl+Shift+N Close the window: Ctrl+Shift+W
Open multiple editors at the same time (view multiple files)
Create a new file Ctrl+N Toggling Ctrl+Tab between files Cut out a new editor (up to 3) Ctrl+\, or you can hold down the Ctrl mouse and click on the file name in the Explorer Ctrl+1 Ctrl+2 Ctrl+33 editor cycle Ctrl+ ‘editor to change position, Ctrl+ K and then press Left or Right
The code editor
formatting
Lines of code indented Ctrl+[Ctrl+]
Ctrl+C Ctrl+V If unchecked, copy or cut a whole line by default
Copy one line Up or Down: Shift+Alt+Up or Shift+Alt+Down Enter one line below the current line, Ctrl+Shift+Enter
The cursor associated
Move to Start of Line: Home Move to End of Line: End Move to Start of File: Ctrl+End Move to Start of File: Ctrl+Home Move to Definition: F12 Definition Thumnail: Just Look at It and Don’t Skip Forward Alt+F12 Move to End of Bracket Ctrl+Shift+] Select From Ctrl to End of Line Shift+Home Remove all words on the right side of the cursor Ctrl+DeleteShrink/ Expand Selection: Shift+Alt+Left and Shift+Alt+ Rightmulti-cursor: Alt+Click to add Cursor or Ctrl+Alt+Down or Ctrl+Alt+Up to select all matching Ctrl+Shift+L at the same time
Ctrl+D The next match is also selected (I’ve customized it to delete the current line, see Ctrl+Shift+K below).
Back up the previous cursor operation Ctrl+U
Refactor the code
Rename: For example, if you want to change a method name, select it and press F2. Enter the new name. You will see that all the files have been changed. Right-click “Set File to Compare” in the Explorer and select “Compare with ‘file_name_you_chose’ on the file you want to compare.”
To find the replacement
Find Ctrl+F Find Ctrl+H Find Ctrl+Shift+F
:
* To match one or more characters in a path segment?To match on one character in a path segment** to match any number of path segments,including none{} to group conditions (e.g. {**/*.html,**/*.txt} matches all HTML and TXT files)[] to declare a Range of characters to match (e.g., example.[0-9] to match on…
According to the relevant
Full-screen: F11Zoomin/Zoomout: Ctrl+ =/Ctrl + – Sidebar Show/Hidden: Ctrl+B Sidebar Show:
Show Explorer Ctrl+Shift+ ESHOW SearchCtrl+Shift+ FSHOW GitCtrl+Shift+ GSHOW DebugCtrl+Shift+ DSHOW OutputCtrl+Shift+U
other
Auto-save: File ->; AutoSave, or Ctrl+Shift+P, type Auto