Some common shortcut keys for Webstorm

The following are some common shortcut keys of Webstorm:
1. ctrl + shift + n: Open the file in the project, the purpose is to open the file in any directory under the current project.
2. ctrl + j: output template
3. ctrl + b: jump to variable declaration
4. ctrl + alt + T: wrap code around (including Wrap with Abbreviation of zencoding)
5. ctrl + []: match {}[]
6. ctrl + F12: can display the structure of the current file
7. ctrl + x: cut (delete) a line, if not selected, cut the entire line directly, if part of the content is selected, cut the selected content
8. alt + left/ right: label switching
9. ctrl + r: replacement
10. ctrl + shift + up: line movement
11. shift + alt + up: block movement (if(){}, while(){} statement block movement)
12. ctrl + d: line copy
13. ctrl + shift + ]/[: select block code
14. ctrl + / : single line comment
15. ctrl + shift + / : block comment
16. ctrl + shift + i : show current CSS selector Or the details of the JS function
17. ctrl + '-/+': Can fold any code block in the project, it does not select the fold, but 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
Alt+Enter Import package, auto-correct
Ctrl+N Find class
Ctrl+Shift+N Find files
Ctrl+Alt+L Format code
Ctrl+Alt+O Optimize imported classes and packages
Alt+Insert Generate code (such as get, set methods, constructors, etc.)
Ctrl+E or Alt+Shift+C Recently changed code
Ctrl+R Replace text
Ctrl+F Find text
Ctrl+Shift+Space Autocomplete code
Ctrl+Space Code prompt
Ctrl+Alt+Space Class name or interface name prompt
Ctrl+P Method parameter prompt
Ctrl+Shift+Alt+N Find in class method or variable
Alt+Shift+C Compare recently modified code
Shift+F6 Refactor-Rename
Ctrl+Shift+Up key
Ctrl+X Delete line
Ctrl+D Copy line
Ctrl+/ or Ctrl+Shift+/ Comment (// or /*...*/ )
Ctrl+J Automatic code
Ctrl+E Recently opened file
Ctrl+H Show class diagram
Ctrl+Q Show comment document
Alt+F1 查找代码所在位置
Alt+1 快速打开或隐藏工程面板
Ctrl+Alt+ left/right 返回至上次浏览的位置
Alt+ left/right 切换代码视图
Alt+ Up/Down 在方法间快速移动定位
Ctrl+Shift+Up/Down 代码向上/下移动。
F2 或Shift+F2 高亮错误或警告快速定位
代码标签输入完成后,按Tab,生成代码。
选中文本,按Ctrl+Shift+F7 ,高亮显示所有该文本,按Esc高亮消失。
Ctrl+W 选中代码,连续按会有其他效果
选中文本,按Alt+F3 ,逐个往下查找相同文本,并高亮显示。
Ctrl+Up/Down 光标跳转到第一行或最后一行下
Ctrl+B 快速打开光标处的类或方法

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325639527&siteId=291194637