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

Examples of the use of commonly used VSCode shortcut keys

2025-04-13 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 the use of commonly used VSCode shortcut keys. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.

Although we often use many shortcuts in VS Code, we may forget them. Here are some GIF made with visualization in order to remember them better. I hope it will be helpful to you.

Each command in VSCode can also be executed by using CTRL + SHIFT + P and the command prompt for the search query. But knowing that direct shortcuts are faster.

1. CTRL+, opens user settings

Occasionally you need to adjust user preferences, which is the way to open them directly.

2. CTRL+K CTRL+S: display shortcut keys

This is a complete list of shortcuts in VSCode. You can also download Windows [PDF] and MacOS [PDF].

3.CTRL+R: switching workspaces

This opens the list of recent workspaces and is an ultra-fast way to switch to another folder or project. Note that if a terminal is opened in the VS Code workspace, this closes the current terminal session.

4. ALT + Z: toggle automatic line wrapping

It is a handy little helper when we want to see a complete line without scrolling horizontally.

5. CTRL + G: go to Lin

6. CTRL + P: go to the file

7. F8: go to the next error or warning

This is a single-button debugging, and you can also use SHIFT+F8 to go to a previous error or warning.

8. CTRL + TAB: toggle tab

The fastest way to switch open files without using a mouse.

9. SHIFT + ALT + I: insert the cursor at the end of each selected line

This is useful for quickly creating multiple cursors in a selected area.

10. CTRL+L: select the current row

11. CTRL + SHIFT + L: select all current selections that appear

This shortcut does save time because you don't have to press CTRL + D throughout the file.

12. CTRL + F2: select all current words that appear

With it, you don't even have to select anything, just place the cursor over all the words you want to select.

13. CTRL + SHIFT + SPACE: trigger parameter prompt

You can use this command if we don't remember the order of the parameters and don't want to interrupt our process by looking at the documentation.

14. SHIFT + ALT + F: format the document

15. CTRL + K CTRL + F: code for format selection

16. F12: go to definition

17. ALT+F12: view definition

This only shows the corresponding definition of the variable or function without moving the cursor.

18. F2: rename variables

19. CTRL + K CTRL + X: delete trailing spaces

20. CTRL + KR: display the active file in Explorer

21. CTRL + SHIFT + H: replace with a file

twenty-two。 CTRL + K V = Open Markdown preview on the right

23. Ctrl + KZ: enter Zen mode

Thank you for reading! This is the end of this article on "examples of the use of commonly used VSCode shortcuts". 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 out 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