1. ctrl + shift + n: 打开工程中的文件,目的是打开当前工程下任意目录的文件。
2. ctrl + j: 输出模板
3. ctrl + b: 跳到变量申明处
4. ctrl + alt + T: 围绕包裹代码(包括zencoding的Wrap
with
Abbreviation)
5. ctrl + []: 匹配 {}[]
6. ctrl + F12: 可以显示当前文件的结构
7. ctrl + x: 剪切(删除)行,不选中,直接剪切整个行,如果选中部分内容则剪切选中的内容
8. alt + left/right:标签切换
9. ctrl + r: 替换
10. ctrl + shift + up: 行移动
11. shift + alt + up: 块移动(
if
(){},
while
(){}语句块的移动)
12. ctrl + d: 行复制
13. ctrl + shift + ]/[: 选中块代码
14. ctrl + / : 单行注释
15. ctrl + shift + / : 块注释
16. ctrl + shift + i : 显示当前CSS选择器或者JS函数的详细信息
17. ctrl +
‘-/+‘
: 可以折叠项目中的任何代码块,它不是选中折叠,而是自动识别折叠。
18. ctrl +
‘.‘
: 折叠选中的代码的代码。
19. shift + esc: 当前激活的任意小窗口最小化,也可以是alt+数字键,数字在小窗口有显示。
20. alt +
‘7‘
: 显示当前的函数结构。
21. 如果是*.html页面,则在文件名下的导航栏某DOM结构上右键,可以全选当前DOM结构。
Common shortcut keys in default configuration Find/Replace
Shortcut keys |
Description |
Ctrl+shift+n |
Quickly find files within a project by file name (required) |
Ctrl+shift+alt+n |
Quick Find location with one character (required) |
Ctrl+f |
Quickly find code within a file |
F3 |
Find the next |
Shift+f3 |
Find Previous |
Ctrl+r |
In-File code substitution |
Ctrl+shift+r |
Specify code bulk substitution in Directory |
Ctrl+shift+f |
Specify in-Directory code bulk Lookup |
Ctrl+r |
In-File code substitution |
Interface operation
Shortcut keys |
Description |
Ctrl+shift+a |
Quickly find and use all the functions of the editor (must remember) |
ALT+[0-9] |
Quick Disassembly Function Interface module |
Ctrl+shift+f12 |
Maximum area display code (hides other feature interface modules) |
Alt+shift+f |
Add the current file to the Favorites folder |
Ctrl+alt+s |
Open the Configuration window |
Ctrl+tab |
Toggle Code tab (also make this selection, less efficient) |
alt+<-or |
Toggle Code Tab |
Shortcut keys |
Description |
Ctrl+shift+n |
Quickly find files within a project by file name (required) |
Ctrl+shift+alt+n |
Quick Find location with one character (required) |
Ctrl+f |
Quickly find code within a file |
F3 |
Find the next |
Shift+f3 |
Find Previous |
Ctrl+r |
In-File code substitution |
Ctrl+shift+r |
Specify code bulk substitution in Directory |
Ctrl+shift+f |
Specify in-Directory code bulk Lookup |
Ctrl+r |
In-File code substitution |
Interface operation
Shortcut keys |
Description |
Ctrl+shift+a |
Quickly find and use all the functions of the editor (must remember) |
ALT+[0-9] |
Quick Disassembly Function Interface module |
Ctrl+shift+f12 |
Maximum area display code (hides other feature interface modules) |
Alt+shift+f |
Add the current file to the Favorites folder |
Ctrl+alt+s |
Open the Configuration window |
Ctrl+tab |
Toggle Code tab (also make this selection, less efficient) |
alt+<-or |
Toggle Code Tab |
Ctrl+f4 |
Close the Current Code tab |
Code editing
Shortcut keys |
Description |
Ctrl+d |
Copy when moving forward |
Ctrl+w |
Select a word |
ctrl+<-or |
Jump cursor position with Word as boundary |
Alt+insert |
Create a new file or other |
Ctrl+alt+l |
Formatting code |
Shift+tab/tab |
Decrease/Enlarge indent (you can reduce line indentation in your code) |
Ctrl+y |
Delete a row |
Shift+enter |
Start a row again (regardless of where the cursor is) |
Navigation
shortcut |
description |
Esc |
Enter the code editing area |
Alt+f1 |
Useful for finding the location of code in other interface modules |
Ctrl+g |
The code to the specified line |
ctrl+]/[ |
Cursor to front or back of code block |
Alt+up/down |
Previous/Next method |
Recommended configuration version Control shortcut keys
shortcut |
description |
Ctrl + C |
commit code |
ctrl+p |
Push updates to the remote repository |
ctrl+g |
|
ctrl+]/[ |
cursor to front or back of code block |
alt+up/down |
|