Editor related operations
role | shortcuts | note |
---|---|---|
Skip to the beginning of the code | command+option+{ | |
Skip to the end of the code | command+option+} | |
Cut or delete the current line | command+D | |
Case conversion | Shift + Command + U | |
The cursor to the left | control + B | |
The cursor to the right | control + F | |
The cursor upward | control + P | |
The cursor down | control + N |
Related operations on the main menu
File operations
role | shortcuts | note |
---|---|---|
Open the preferences | command + , | |
Open the project structure | command + ; | |
exit | command + Q |
Edit operation
role | shortcuts |
---|---|
undo | command + z |
View comment document | control + J |
View method parameters | command + P |
View the method return value type | shift+control+ P |
View recently used files | command + E |
Locate the file
role | shortcuts |
---|---|
To find the class | command + O |
Find files | shift+command+O |
Location code | command + L |
Go back to the last cursor | command + [ |
Skip to the next cursor | command + ] |
Look at the class/method declarations | command + B |
View the implementation class | option + command + B |
code
role | shortcuts |
---|---|
Overriding methods | control + O |
Implementation method | control + I |
Wrap code block | option + command + T |
Code completion | Control + space |
Wrap code block | option + command + T |
Use dynamic templates | command + J |
Single-line (multi-line) comments | command + / (+shift) |
Formatting code | option + command + L |
Optimize the import class | option + command + O |
Generate code (get/set, etc.) | command + N |