14
Author: Mariana Simon
Translator: Frontend Xiaozhi
Source: dev
If you have dreams and dry goods, search on [Great Move to the World] Follow the brushing wisdom who is still doing dishes in the early morning.

This article GitHub https://github.com/qq449245884/xiaozhi has been included, the first-line interview complete test site, information and my series of articles.

Listed below are some shortcuts that all Zhimi should learn as soon as possible. I wish I knew them as soon as I wrote the code. It can save us hours of manual codewords.

1. Ctrl + P: Show the search bar to search for files

(Mac: Cmd + P)

We often switch between multiple files. This shortcut key can help us quickly find the file we think of.

2. Ctrl + Shift + P: Display the command panel

(Mac: Cmd + Shift + P)

This shortcut key displays a command panel where you can search for operations.

3. Crtl + B: switch sidebar

(Mac: Cmd + B)

Show or hide the sidebar.

4. Ctrl + Shift + E: Move to the Explorer window

(Mac: Cmd + Shift + E)

Move to the Explorer window and highlight the location of our file.

5. Ctrl + Shift + M: Quickly display errors and warnings

(Mac: Cmd + Shift + M)

Everyone likes code without but, this shortcut key can help us better see the cause of the error.

6. Ctrl + Shift + L: multi-cursor selection

(Mac: Cmd + Shift + L)

Adding other cursors to edit all currently selected items is usually more error-prone than searching and replacing all operations.

7. Ctrl + D: select one by one

(Mac: Cmd+D)

Similar to the previous one, but if you want to select one by one, you can use Ctrl +D .

8. Ctrl + /: switch line comment

(Mac: Cmd+/)

Switch between commented and uncommented line behavior.

9. Ctrl + Shift + I: format the entire file

(Mac: Shift + Option + F)

(Windows: Windows Shift + Alt + F)

To format the entire active file or prompt you to install the Formatter extension, I use the Prettier plugin to format the JS code.

10. Alt + up or Alt + down: move line

(Mac: Opt+Down or Opt+Up)

Very simple, move the rows up and down.

Easter eggs

Ctrl +Space: show prompt

~End, I’m Xiaozhi, I’m going to wash the dishes, see you in the next issue~

possible bugs of the 1609354b12c1c9 code after deployment cannot be known in real time. In order to solve these bugs afterwards, a lot of time was spent on log debugging. By the way, I would like to recommend a useful BUG monitoring tool Fundebug .

Original: https://dev.to/simonpaix/10-useful-vs-code-shortcuts-you-should-know-42m

communicate with

If you have dreams and dry goods, search for [Moving to the World] Follow this brushing wit who is still doing dishes in the early morning.

This article GitHub https://github.com/qq449245884/xiaozhi has been included, the first-line interview complete test site, information and my series of articles.


王大冶
68.1k 声望105k 粉丝