1) file operations related shortcuts
hot key | effect |
---|---|
Ctrl + E | Open the file Recently Viewed |
Ctrl + N | Quickly open a struct file structure is located |
Ctrl + Shift + N | Quickly open files |
Shift + F6 | Rename the folder, file, method, variable names, etc. |
2) formatting codes associated shortcuts
hot key | effect |
---|---|
Ctrl + Alt + L | Formatting code |
Ctrl + Space | Code hints |
Ctrl + / | Single-line comments |
Ctrl + Shift + / | Multi-line comments |
Ctrl + B or F4 | Quickly jump to define the structure or process position (required to move the cursor to the name of the structure or methods) |
Ctrl + "+ or -" | (Cursor position) the current method can be expanded or collapsed |
3) Shortcuts to find and locate the relevant
hot key | effect |
---|---|
Ctrl + R | Replace Text |
Ctrl + F | Find text |
Ctrl + Shift + F | Global Search |
Ctrl + G | Display the line number of the current cursor line |
Ctrl + Shift + Alt + N | Find a method or variable class |
4) Edit the code associated with shortcut keys
hot key | effect |
---|---|
Ctrl + J | Quickly generate a snippet |
Shift+Enter | Insert a row into the bottom of the cursor and move the cursor to the beginning of the line |
Ctrl + X | Delete the current cursor row |
Ctrl + D | Copy the current cursor line |
Ctrl + Shift + upper or lower direction key | The line where the cursor is moved up and down (can also use the Alt + Shift + or down arrow keys) |
Alt + Enter | Be imported automatically imported package |
Ctrl + Shift + U | The selected content case-conversion |
Alt + Insert | Generated test code |
Alt + Up/Down | Quickly move to the next or a method |
Ctrl + Alt + Space | Class or interface name prompt (code hints) |
Ctrl + P | Parameter Type of presentation method (method calls for an in use position, and the cursor moves to the ( ) inside or both sides) |
5) Shortcut Editor related
hot key | effect |
---|---|
Ctrl + Alt + left/right | 返回至上次浏览的位置 |
Alt + left/right | 切换代码视图 |
Ctrl + W | 快速选中代码 |
Alt + F3 | 逐个向下查找选中的代码,并高亮显示 |
Tab | 代码标签输入完成后,按 Tab,生成代码 |
F2 或 Shift + F2 | 快速定位错误或警告 |
Alt + Shift + C | 查看最近的操作 |
Alt + 1 | 快速打开或隐藏工程面板 |