Although the shortcut keys can be set to the eclipse version in idea, there is still a big gap with the shortcut keys of eclispe;
Here is a document explanation of our custom shortcut key jar package and import method.
Link: https://pan.baidu.com/s/13ncPu5q5mpHIbG3u2d_7UA
Extraction code: 7k7k
Shortcut summary:
-
1. Statement of completion code: alt + /
-
2. Quick fix: ctrl + 1
-
3. Batch guide package: ctrl + shift + o
-
4. Use single-line comments: ctrl + /
-
5. Use multi-line comments: ctrl + shift + /
-
6. Cancel multi-line comments: ctrl + shift + \
-
7. Copy the code of the specified line: ctrl + alt + down or ctrl + alt + up
-
8. Delete the code of the specified line: ctrl + d
-
9. Move the code up and down: alt + up or alt + down
-
10. Switch to the next line of code space: shift + enter
-
11. Switch to the previous line of code space: ctrl + shift + enter
-
12. How to view the source code: ctrl + select the specified structure or ctrl + shift + t
-
13. Return to the previous edited page: alt + left
-
14. Enter the next edit page (for the one above): alt + right
-
15. Select the specified class with the cursor to view the inheritance tree structure: ctrl + t
-
16. Select the corresponding code block ctrl + shift + home
-
16. Cancel the corresponding code block being selected ctrl + shift + end
-
23. Format code: ctrl + alt + l
-
24. Select several rows and move backward as a whole: tab
-
25. Select several rows and move forward as a whole: shift + tab
-
26. In the current class, display the class structure, and support searching for specified methods, attributes, etc.: ctrl + o
-
27. Batch modify the specified variable name, method name, class name, etc.: alt + shift + r
-
28. Call out the structure of generating getter/setter/constructor: alt + shift + s
-
29. Display the attributes of the currently selected resource (project or file): alt + enter
-
30. Close the current window: ctrl + w
-
31. Close all windows: ctrl + shift + w
-
32. View where the specified structure has been used: ctrl + alt + g
-
33. Find and replace: ctrl + f global replacement (replace all projects and templates): ctrl+h
-
34. Maximize the current View: ctrl + m
-
35. Directly locate the first position of the current line: home
-
36 Directly locate to the end of the current line: end
-
37 alt + enter; Create a reference;
-
38 The line where the cursor is located ctrl+v/c/x, directly operate the entire line;
-
39 ctrl + alt + /: ①parameter completion; ②view
-
40 ctrl+o View the current class inheritance relationship list
-
41 Put the cursor on the class, click F2, you can view the source code document
-
42 View method multiple rewrite ctrl+alt+h
-
43 ctrl+shift+u automatically generate UML diagram
-
44 F4 pop-up class inheritance structure diagram
-
45 Add to favorites ctrl+alt+f
-
46 alt + shift + m: extract the selected code block as a method
-
47 Select the method ctrl+shift+h to see where the method was called