IDEA commonly used shortcut keys record

"I used to use the shortcut keys of eclipse, but now I want to change it, so I found a record from the Internet here so that I can find it at any time later."

The following post is not original, hereby declare.

Excerpt location: https://www.cnblogs.com/yanggb/p/10838388.html

 

Write code

Ctrl + Shift + Enter, the statement is completed.

"!", The negation is complete, press the "!" Key when entering the expression.

Ctrl + E, the most recent file.

Ctrl + Shift + E, the most recently changed file.

Shift + Click to close the file.

Ctrl + [OR], you can run to the beginning and end of the braces.

Ctrl + F12, you can display the structure of the current file.

Ctrl + F7, you can query the reference of the current element in the current file, and then press F3 to select.

Ctrl + N, you can quickly open the class.

Ctrl + Shift + N, you can quickly open the file.

Alt + Q, you can see the current method declaration.

Ctrl + P, you can display parameter information.

Ctrl + Shift + Insert, you can select the clipboard content and insert.

Alt + Insert can generate constructors / Getter / Setter, etc.

Ctrl + Alt + V can introduce variables. For example: new String (); automatically import variable definitions.

Ctrl + Alt + T can wrap the code in a block, for example: try / catch.

Ctrl + Enter, import the package, automatically correct.

Ctrl + Alt + L, format the code.

Ctrl + Alt + I, automatically indent the selected code, this function can also work when editing JSP files.

Ctrl + Alt + O, optimize imported classes and packages.

Ctrl + R, replace text.

Ctrl + F, find text.

Ctrl + Shift + Space, automatically complete the code.

Ctrl + space, code prompt (conflict with system input method shortcut keys).

Ctrl + Shift + Alt + N, find the method or variable in the class.

Alt + Shift + C, recent changes.

Alt + Shift + Up / Down, move up / down one line.

Shift + F6, refactoring-rename.

Ctrl + X, delete the line.

Ctrl + D, copy the line.

Ctrl + / or Ctrl + Shift + /, comment (// or / ** /).

Ctrl + J, automatic code (for example: serr).

Ctrl + Alt + J, surround with dynamic template.

Ctrl + H, display the class structure diagram (class inheritance hierarchy).

Ctrl + Q, display the annotation document.

Alt + F1, find the location of the code.

Alt + 1, quickly open or hide the engineering panel.

Ctrl + Alt + left / right, return to the last browsed position.

Alt + left / right, switch the code view.

Alt + Up / Down, quickly move between methods.

Ctrl + Shift + Up / Down, move the sentence up / down.

F2 or Shift + F2, highlight error or warning to quickly locate.

Tab, after entering the code label, press Tab to generate the code.

Ctrl + Shift + F7, highlight all the text, press Esc to highlight and disappear.

Alt + F3, search for the same text one by one and highlight it.

Ctrl + Up / Down, go to the first line or the last line under the cursor.

Ctrl + B / Ctrl + Click, quickly open the class or method at the cursor (jump to the definition).

Ctrl + Alt + B, jump to the method implementation.

Ctrl + Shift + Backspace, jump to the last edited place.

Ctrl + O, rewrite the method.

Ctrl + Alt + Space, the class name is automatically completed.

Ctrl + Alt + Up / Down, quickly jump to search results.

Ctrl + Shift + J, integrate two lines.

Alt + F8, calculate the variable value.

Ctrl + Shift + V, you can insert the contents of the recently used clipboard into the text.

Ctrl + Alt + Shift + V, simple paste.

Shift + Esc can not only move the focus to the editor, but also hide the current (or last active) tool window.

F12. Move the focus from the editor to the most recently used tool window.

Shift + F1, to open the Java document browser of the class or method used at the cursor character of the editor.

Ctrl + W, you can select words and then sentences and then lines and functions.

Ctrl + Shift + W, deselect the word under the cursor.

Alt + F7, find the location of a class, method or variable used in the whole project.

Ctrl + I, the implementation method.

Ctrl + Shift + U, case conversion.

Ctrl + Y, delete the current line.

Shift + Enter, insert a new line down.

psvm / sout, main / System.out.println (); Ctrl + J, see more.

Ctrl + Shift + F, global search.

Ctrl + F, search / Shift + F3, search up / F3, search down.

Ctrl + Shift + S, advanced search.

Ctrl + U, go to the parent class.

Ctrl + Alt + S, open the setting dialog box.

Alt + Shift + Inert, enable / disable column selection mode.

Ctrl + Alt + Shift + S, open the current project / module properties.

Ctrl + G, locate the line.

Alt + Home, jump to the navigation bar.

Ctrl + Enter, insert a line.

Ctrl + Backspace, delete by word.

Ctrl + "+/-", the current method expands and collapses.

Ctrl + Shift + "+/-", all expand and collapse.

 

Debug part, compile

Ctrl + F2, stop.

Alt + Shift + F9, select Debug.

Alt + Shift + F10, select Run.

Ctrl + Shift + F9, compile.

Ctrl + Shift + F10, run.

Ctrl + Shift + F8, check the breakpoint.

F8, step past.

F7, step in.

Shift + F7, enter intelligently.

Shift + F8, step out.

Alt + Shift + F8, force step over.

Alt + Shift + F7, force step in.

Alt + F9, run to the cursor.

Ctrl + Alt + F9, force to run to the cursor.

F9, recovery procedure.

Alt + F10, locate the breakpoint.

Ctrl + F8, switch line breakpoint.

Ctrl + F9 to generate the project.

Alt + 1, project.

Alt + 2, favorite.

Alt + 6 , ALL。

Alt + 7, structure.

Ctrl + Shift + C, copy the path.

Ctrl + Alt + Shift + C, copy the reference, you must choose the class name.

Ctrl + Alt + Y, synchronization.

Ctrl + ~, quickly switch programs (interface appearance, code style, shortcut key mapping and other menus).

Shift + F12, restore the default layout.

Ctrl + Shift + F12, hide / restore all windows.

Ctrl + F4, close.

Ctrl + Shift + F4, close the active tab.

Ctrl + Tab to go to the next splitter.

Ctrl + Shift + Tab, go to the previous splitter.

 

Reconstruction

Ctrl + Alt + Shift + T, the reconstruction menu pops up.

Shift + F6, rename.

F6, move.

F5, copy.

Alt + Delete, delete safely.

Ctrl + Alt + N, inline.

 

Find

Ctrl + F, search.

Ctrl + R, replace.

F3, find the next one.

Shift + F3 to find the previous one.

Ctrl + Shift + F, search in the path.

Ctrl + Shift + R, replace in the path.

Ctrl + Shift + S, search structure.

Ctrl + Shift + M, replace the structure.

Alt + F7, find usage.

Ctrl + Alt + F7, display usage.

Ctrl + F7, find usage in the file.

Ctrl + Shift + F7, highlight the usage in the file.

 

Supplement (reserved)

 

 

"The above are usually used temporarily, and will be supplemented at any time according to the use situation."

Guess you like

Origin www.cnblogs.com/kejizhua/p/12689243.html