vscode commonly used shortcut keys and shortcut keys used computer

A, vs code commonly used shortcuts list

1, comments:

a) single-line comments: [ctrl + k, ctrl + c] or ctrl + /

b) Cancel-line comment: [ctrl + k, ctrl + u] (ctrl press and hold, then k + u)

c) multi-line comments: [alt + shift + A]

d) Multi-line comments: / **

2, the mobile line: alt + up / down

3, show / hide the left column directory ctrl + b

4. Copy the current line: shift + alt + up / down

5, delete the current line: shift + ctrl + k

6, the console terminal displaying and hiding: ctrl + ~

7, Find File / Install vs code plug address: ctrl + p

8, the code format: shift + alt + f

9, a new window: ctrl + shift + n

10, line Increase Indent: ctrl + [

11, line Decrease Indent: ctrl +]

12, cutting trailing spaces (removes a row at the end of those useless spaces): ctrl + shift + x

13, font enlargement / reduction: ctrl + (+ or -)

14, split Editor: ctrl + 1/2/3

15, switching window: ctrl + shift + left / right

16, the editor window Close: ctrl + w

17, close all windows: ctrl + k + w

18, toggle full screen: F11

19, wrap: alt + z

20, a display git: ctrl + shift + g

21, Global Find File: ctrl + p

22, the display command widget related (eg: git log): ctrl + shift + p

23, select the text: shift + left / right / up / down

24, collapsing code: ctrl + k + 0-9 (0 is completely folded)

25, the unwind code: ctrl + k + j (fully deployed Code)

26, delete the line: ctrl + shift + k

27, fast switching topics: ctrl + k / ctrl + t

28, quickly return to the top: ctrl + home

29, quickly back to the bottom: ctrl + end

30, format the selected codes: ctrl + k / ctrl + f

31, check the code: shift + left mouse button

32, multiple rows add content (cursor): ctrl + alt + up / down

33, global replacement: ctrl + shift + h

34, replacing the current file: ctrl + h

35, open recently opened files: ctrl + r

36, open a new command window: ctrl + shift + c

Two, vs code of common plug-ins

1, Auto Rename Tag modify html tags, automatically help you complete the synchronization to modify the tail closure labels, and webstorm same.

2, Auto Close Tag closed automatically HTML tags

4, Beautiful formatting codes tool

5, Dash Dash is the MacOS API documentation browser and code segments manager

6, Ejs Snippets ejs code hints

7, ESLint javascript syntax error checking and tips

8, File Navigator to quickly find files

9, Git History (git log) to view the git log

10, used when writing gulp Gulp Snippets, gulp grammar tips.

11, HTML CSS Support writing class project supported by current smart tips on style HTML tags

12, HTML Snippets super easy H5 and primary tips and snippets

13, Debug for Chrome let debug function vs code of chrome mapping, static pages can be used to interrupt point vscode debugging, accessories slightly more complex

14, Document this Js comments template

15, jQuery Code Snippets jquery tooltip

16, Html2jade html template template turn pug

17, JS-CSS-HTML Formatter formatted

18, when the Npm intellisense require prompt tool bag

19, Open in browser to open the default browser

20, One Dark Theme theme a vs code

21, Path Intellisense automatic route completion, default without this feature

Fast switching between tools 22, Project Manager multiple projects

23, Pug (Jade) snippets pug grammar tips

24, React Components to create a reaction component code based on the file name.

25, React Native Tools reactNative tools provides a development environment for React Native project.

26, Stylelintcss / sass code review

27, Typings auto installer installation vscode code prompt dependencies, typtings based

28, View In Browser default browser to view the HTML file (Ctrl + F1 shortcut keys can be modified)

29, Vscode-icons let vscode resource directory to add new icons, essential

30, VueHelper Vue2 code segment (including Vue2 api, vue-router2, vuex2)

31, Vue 2 Snippets vue vue necessary code hints

32, Vue-color vue syntax highlighting themes

33, Auto-Open Markdown Preview markdown files automatically open preview

34, EverMonkey Evernote

35, a high-contrast theme atom one dark atom of (personal recommendation)

Third, the commonly used computer shortcuts

1, ctrl + shift + delete to quickly clear your browser cache

2, ctrl + alt + delete quick access to the Task Manager page

3, window + L quickly lock the computer

4, window + d minimize all windows

5, window + e Open My Explorer (My Computer)

6, window + f search window to quickly open

7, alt + tab to quickly view the application with the window open

Fourth, additional

Every time when the need to enter the code debugging console.log (), but every time knocked a lot of words

File - Preferences - User snippet ---- Search javaScript, enter JavaScript.json, you can customize a lot of useful shortcuts,

The following example is willing to play c and tab out directly console.log ( '') it

“Print to console”: {

"prefix": "c",

"body": [

  "console.log('$1')"

],

"description": "Log output to console"

}

Published 31 original articles · won praise 5 · Views 779

Guess you like

Origin blog.csdn.net/weixin_45899022/article/details/104042989