Intellij idea common shortcut keys

Source: Internet
Author: User

PS: it has been quite a while using intellij idea editor. Haha. Integrate frequently-used shortcuts to avoid finding new ones in the future.

The order is probably from top to bottom.

 

Alt + enter: automatic correction, prompt
Alt + insert: Super Insert new, etc.

Use Alt + numeric keys => to switch the Panel

CTRL + H: view the class hierarchy
CTRL + N: quick class opening
CTRL + R: replace
CTRL + F: Search
CTRL + Q: View javadoc
CTRL + W: special selection, such as a word selection, continuous press will have other effects
CTRL + D: copy a row or copy the selected code block
CTRL + X: delete a row
CTRL + F12: displays the structure of the current file.
CTRL + B: Quickly open the class or method at the cursor
CTRL + ALT + B: Jump to the implementation of the abstract Method
CTRL + ALT + T: use... to enclose the code block, such as if Else. Try/catch, etc.
CTRL + O: override the methods in the parent class
CTRL + I: implement the methods in the parent class
CTRL + ALT + Shift + T: refactoring
CTRL +/or + Shift +/: Comment (// or /*...*/)
CTRL + [or]: Jump to the beginning and end of braces

CTRL + Shift + up or down: Move up/down class, function, variable, etc.
CTRL + Shift + N: You can quickly open a file.
CTRL + Shift + F7: highlight all the text and Press ESC to highlight and disappear.

CTRL + ALT + L: format the code-select the entire project
CTRL + ALT + I: quick code formatting-current document
CTRL + ALT + O: optimized imported classes and packages
CTRL + ALT + L/R: return the cursor position for the previous or next time
CTRL + ALT + F7: view the call

Shift + F6: refactoring-Rename

F2: Quickly locate highlight errors or warnings


Alt + F1: you can locate the elements being edited in each panel.
Alt + F7: Search for references
Alt + up or down: Fast movement between methods
Alt + Left or Right: switch between the left and right tabs


Alt + Shift + C: Compare the recently modified code

 

IDEA provides some abbreviations:

Psvm: public static void main (...)...
Sout: system. Out. println ();
Itit: While (iterator. hasnext () {object next = iterator. Next ();}
FN: If = NULL
Inn: If! = NULL
Thr: Throw new


Others:

Use Alt + enter => iterate to quickly generate an iteration for a list or Array

 

 

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.