IDEA common shortcuts

  1  The following commonly used shortcut keys need to be constantly experienced in actual operation to truly feel their convenience.
  2  
  3 Ctrl + Alt + S Open settings options
   4  
  5 Ctrl + / comment, uncomment (single line comment)
   6  
  7 Ctrl + Shift + / comment, uncomment (multiline comment)
   8  
  9 Ctrl + N Open class by entering class name (The standard way is to find the class file)
 10  
11 Ctrl + Shift + N Enter the file name to open the file (the standard way is to find the file)
 12  
13 Ctrl + Y Delete the current line
 14  
15 Ctrl + D Copy the current line to the next line
 16  
17 Ctrl + X Cut the current line (also delete the current line)
 18  
19 Ctrl + V Paste
 20  
21Ctrl + R Replace
 22  
23 Ctrl + F Find in the current file (use F3 to switch between multiple results found)
 24  
25 Ctrl + Shift + F Find in a specified range (more detailed)
 26  
27 Ctrl + P View a function Available parameters/ see what values ​​are available for a property, etc.
 28  
29 Ctrl + Shift + 1, 2, 3, 4 Label a line. Combine Ctrl + 1, 2, 3, 4 to quickly locate a marked line. Suitable for files with a particularly large number of lines.
30  
31 Ctrl + delete Deletes a contiguous unit. For example, words, linked words, linked Chinese characters, etc.
32  
33 Ctrl + W Selects a unit. If you press it continuously, the selection range will continue to expand.
34  
35 Ctrl + left and right arrows (navigation keys left and right) Jump by unit.
36  
37 Ctrl + (-/+) Collapse or expand a block of code (for example, a comment or a method is too long, you can press Ctrl + -put it away)
 38  
39 Ctrl + E Open recent file
 40  
41 Ctrl + Shift + E Open recently edited file
 42  
43 Ctrl + Tab directly open recent file
 44  
45 Ctrl + F12 View internal members of current file or say View the structure of this document
 46  
47 Ctrl + G Jump to the specified line
 48  
49 Ctrl + F4 Close the current file
 50  
51 Ctrl + B Open a class (java) declaration, other such as html jsp files are similar. Equivalent to editing the java class file in eclipse, hold down the Ctrl key and click the class name to enter the class declaration.
52  
53 Ctrl + H View the inheritance relationship of the current class (press Shift + Esc to close)
 54  
55 Ctrl + Shift View the inheritance relationship of a method (press Shift + Esc to close)
56  
57 Ctrl + Q View documentation58
 59 
 Ctrl + Alt + L Format code
 60 61 Ctrl + Shift + I View class or method body
 62 63 Ctrl + Alt + O Automatically import packages64  
 65 Ctrl + Alt + Enter Open a new line above the line
 66 67 Ctrl + Shift + up and down arrows move code blocks up and down (compare Alt + Shift + up and down arrows) 
 68 69 Ctrl + Shift + U Switch case
 70 71 Ctrl + Shift + V Paste special (cut board with multiple options)
 72 73 Ctrl + Shift + C Copy the path of the current file
 74 75 Ctrl + Shift + 
 
 
 
 
 
 
 
J Merge the next line to the current
 line76  
77 Ctrl + Shift + (-/+ ) Collapse or expand all code
 blocks78 79 Ctrl 
 + Shift + Space Auto-prompt80
 81 Alt + Enter Auto-import package according to the
 prompt82 83 Alt + left and right arrows in Jump between multiple files currently punched in
 84 85 Alt + / Autocomplete
 86 87 Alt + mouse selection can select a square area (column mode)
 88 89 Alt + Home Lock to the navigation column, press the navigation key to open the file directly
 90 91 Alt + 1, 2
 92 93 Alt + Insert Insert constructors, toString methods, etc.
 94 95 Alt + F7 See where methods are called
 96 
 
 
 
 
 
 
 
 
97 Shift + F6 Rename (for example, select the variable named thread, press Shift + F6 to rename, you can rename all variables originally named thread in this class)
 98  
99 Shift + Enter to open a new one under the current line a line
 100  
101 Shift + Home / End Select the area where the cursor is at the beginning/end of the line
 102  
103 Shift + Navigation arrows Free selection
 104  
105 Shift + F11 View bookmarks

 

Guess you like

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