Visual Studio Code Shortcuts

hot key

+ Ctrl / (single line comment)

+ Alt + A the Shift (multi-line comments)

To cancel single or multi-line comments in the press the shortcut key

The Enter the Shift + + ctrl (above the insertion line, the mouse cursor anywhere in the current row to row change can be directly on line)

The Enter + ctrl (into the lower row, the mouse cursor can be directly to any change in the position of the current line to the next line)

The Shift + + F. Alt (format code, the code does not need to select full, to direct formatting)

The Shift + F + Ctrl (Find File)

 

A commonly used shortcuts
editor window management and
opens a new window: Ctrl + Shift + N
Close: Ctrl + Shift + W
New File Ctrl + N
switch between file Ctrl + Tab
cut a new editor (up to 3 a) Ctrl + \
left, right 3 editor shortcut Ctrl + 1 Ctrl + 2 Ctrl + 3
code editing
format adjustment
line indent the Ctrl + [, the Ctrl +]
the Ctrl + C, the Ctrl + V to copy or cut the current line / current selection
code formatting: Shift + Alt + F
vertically movable line: Alt + up or Alt + down
up down line copy: Shift + Alt + up Shift + Alt + down or
insert a row below the current line Ctrl + Enter
in insert a row above the current row Ctrl + Shift + Enter
cursor-related
move to the beginning: Home
to move to the end of the line: end
to move to the end of the file: Ctrl + end
to move to the beginning of the file: Ctrl + Home
to delete all characters right of the cursor: Ctrl + Delete
expansion / contraction range selection: Shift + Alt + Left Shift + Alt + Right and
simultaneously select all match: Ctrl + Shift + L
folded code: Ctrl + Shift + [or]
Search and replace
Find Ctrl + F
Find and Replace Ctrl + H
the entire file to find the folder Ctrl + Shift + F
Displays
full screen: F11
sidebar explicit / implicit: Ctrl + B
to display Explorer Ctrl + Shift + E
to display the search Ctrl + Shift + F
display Git Ctrl + Shift + G
show Debug Ctrl + Shift + D
show the output (output) Ctrl + Shift + U 
enlarged Ctrl + +
refine Ctrl + -


Second, the commonly used techniques
1, click on the lower left corner of the icon to view and modify all the shortcuts, see the user set the following icon

2, add the following code file js, javascript semantic checking can be started (the top of the file must be placed before the note onset)

//@ts-check


3, Ctrl + J-control switching station

Three, Git usage

  The machine needs to have installed Git

  No need to install plug-ins, the third icon from the sidebar can be a stand-alone add, commit, push, pull. (Or use ctrl + shift + g open, view or use - "Git open Git)

 

Fourth, the theme change

  Icon Theme: Ctrl + shift + p to open the command panel, enter the icon theme enter, you can select one.

  Color theme: Ctrl + shift + p to open the command panel, enter the color theme carriage return, you can select one.

 

Five, Debug

  Use ctrl + d to open the debug panel.

  Launch.json can be configured as needed

Six, common plug-ins

  View In Browser

  - Preview page (ctrl + F1)

  vscode-icons

  - icon in the sidebar, for people who have a visual OCD is a must

  HTML Snippets

  - Support for HTML5 tags tips

  HTML CSS support

  - css automatically filled

  JS-CSS-HTML Formatter

Guess you like

Origin www.cnblogs.com/qiupiaohujie/p/12185831.html