Essential shortcuts for intellij ide

Source: Internet
Author: User
Tags code tag

######### Intellij ide shortcut ##########

Alt + press enter to import the package, automatically corrected
CTRL + N lookup class
CTRL + Shift + n search for files
CTRL + ALT + L format the code

CTRL + ALT + O optimized imported classes and packages
Alt + insert generate code (such as get, set method, constructor, etc)
CTRL + E or Alt + Shift + C recently changed code
CTRL + R replace text

CTRL + F search for text
CTRL + Shift + space auto-completion code
CTRL + space code prompt

CTRL + ALT + space class name or interface name prompt

CTRL + P method parameter prompt

CTRL + Shift + ALT + n find methods or variables in the class

Alt + Shift + C compare the recently modified code


Shift + F6 reconstruction-Rename
CTRL + Shift + TOP key
CTRL + x Delete rows
CTRL + D copy rows
CTRL +/or Ctrl + Shift +/comment (// or /*...*/)
CTRL + J Automatic Code
CTRL + e recently opened files

CTRL + H display class structure diagram

CTRL + q show comments document
Alt + F1 locate code
Alt + 1 quickly open or hide the project panel

CTRL + ALT + left/right return the previous browsing position
Alt + left/right switch Code view

Alt + up/down fast moving and locating between methods

CTRL + Shift + up/down code move up/down.

F2 or SHIFT + F2 highlight error or warning quick locating

 

After the code tag is entered, press tab to generate the code.

Select the text, press Ctrl + Shift + F7, highlight all the text, and Press ESC to highlight and disappear.

Press Ctrl + W to select the code, which has other effects.

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

CTRL + up/down Jump cursor to the first or last line

CTRL + B quickly open the class or method at the cursor


Essential shortcuts for intellij ide

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.