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

What are the commonly used shortcut keys for webstorm

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you what webstorm shortcuts are commonly used, I believe most people do not know much about it, so share this article for your reference, I hope you can learn a lot after reading this article, let's go to know it!

Some common shortcut keys for Webstorm:

1. Ctrl + shift + n: open files in the project in order to open files in any directory under the current project.

2. Ctrl + j: output template

3. Ctrl + b: skip to variable declaration

4. Ctrl + alt + T: around the package code (including zencoding's Wrap with Abbreviation)

5. Ctrl + []: match {} []

6. Ctrl + F12: you can display the structure of the current file

7. Ctrl + x: cut (delete) the line, uncheck it, cut the whole row directly, and cut the selected content if part of it is selected

8. Alt + left/right: tag switching

9. Ctrl + r: replace

10. Ctrl + shift + up: row move

11. Shift + alt + up: block movement (if () {}, while () {} statement block movement)

12. Ctrl + d: line replication

13. Ctrl + shift +] / [: select the block code

14. Ctrl + /: single-line comment

15. Ctrl + shift + /: block comments

16. Ctrl + shift + I: displays the details of the current CSS selector or JS function

17. Ctrl +'- / +': you can collapse any block of code in the project. Instead of checking the fold, it automatically recognizes the fold.

18. Ctrl +'.': collapse the code of the selected code.

Ctrl+/ single-line comment

Ctrl+shift+/ block comment

Ctrl+shift+ + /-expand / collapse

Ctrl+alt+L format code

Ctrl+shift+ up/down move sentences up and down

Enter the import package of Alt+ and correct it automatically.

Ctrl+N lookup class

Ctrl+Shift+N lookup file

Ctrl+Alt+L format code

Ctrl+Alt+O optimizes imported classes and packages

Alt+Insert generates code (such as get,set methods, constructors, etc.)

Code recently changed by Ctrl+E or Alt+Shift+C

Ctrl+R replacement text

Ctrl+F find text

Ctrl+Shift+Space automatic completion code

Ctrl+ space code hint

Ctrl+Alt+Space class name or interface name prompt

Ctrl+P method parameter hint

Ctrl+Shift+Alt+N finds methods or variables in a class

Alt+Shift+C compares the recently modified code

Shift+F6 refactoring-renaming

Ctrl+Shift+ up the key first

Ctrl+X delete a row

Ctrl+D copy Lin

Ctrl+/ or Ctrl+Shift+/ comments (/ / or / *... * /)

Ctrl+J automatic code

Recently opened files by Ctrl+E

Ctrl+H displays the class structure diagram

Ctrl+Q displays comment documents

Alt+F1 finds the location of the code

Alt+1 quickly opens or hides the project panel

Ctrl+Alt+ left/right returns to the location where it was last browsed

Alt+ left/right toggles code view

Alt+ Up/Down quickly moves and locates between methods

The Ctrl+Shift+Up/Down code moves up / down.

F2 or Shift+F2 highlight error or warning quick positioning

After the code label is entered, press Tab to generate the code.

Select the text, press Ctrl+Shift+F7, highlight all of the text, and press Esc to highlight and disappear.

Ctrl+W selects the code and pressing continuously will have other effects.

Select the text, press Alt+F3, find the same text one by one, and highlight it.

The Ctrl+Up/Down cursor jumps under the first or last line

Ctrl+B quickly opens a class or method at the cursor

The above is all the contents of the article "what are the common shortcut keys for webstorm". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

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