[IDE] Intellij Idea Learning Finishing

Source: Internet
Author: User

First, optimize

1. In the bin directory of the idea's installation directory, locate the two files, depending on whether the system is 32-bit or 64-bit to open the corresponding file.

2. Take the 64-bit example to open the idea64.exe.vmoptions.

Modify Parameters:

-XMS512M indicates a heap memory initial value of 512M

-XMX1024M indicates that the maximum heap memory value is 1024M

-XX:MAXPERMSIZE=512M represents the maximum amount of non-heap memory that the JVM is allowed to allocate

3. Save the file and re-open idea.

Second, commonly used shortcut keys

If eclipse goes to idea, it may be very unaccustomed to the change of shortcut keys, but you can also choose the shortcut key for Eclipse in settings.

Here is a comparison of the shortcut keys for Eclipse and IntelliJ idea:

But here's a quick key to the usual "pure" idea:

Ctrl+y Delete Row
CTRL + N Find class
Ctrl+r Replace
Ctrl+shift+1, 2, 3 ... Create bookmarks
Ctrl+1, 2, 3 ... Navigate to a bookmark
Ctrl+w Extended selection
Ctrl+d Copy the current line and paste it on the next line
Ctrl+j Insert a dynamic template
Ctrl+b is equivalent toCtrl + 左键单击
Ctrl+h Displays the hierarchy of the current class
Alt+enter Automatic repair
Ctrl+alt+s Open settings
Ctrl+q The variable/class name/method name of the cursor, etc. (can also be pressed when prompted to add), displaying the contents of the document
Ctrl + Alt + L Formatting
Ctrl + Shift + R Replace the content with the input, the entire project or the file in the specified directory
Ctrl + Shift + Z Cancel Revocation
Iii. common settings 1. Code hints are case insensitive

Settings->editor->general->code completion->case Sensitive completion:none

2. Setting up the Check program

This feature is used to quickly set the code check level. IntelliJ idea for editing large files is not much advantage, very card, because it has a variety of checks, this is very memory and CPU, so in order to speed up the reading and writing of large files, I will generally be set to temporarily None .

  • InspectionsFor the highest level check, you can check the spelling of words, syntax errors, variables used, calls between methods, and so on.
  • SyntaxYou can check the spelling of the word, simple syntax error.
  • NoneNo checks are set.

3. Guide Package function
    • Tick the first green box, IntelliJ idea will automatically help us optimize the imported package when we write the code, such as automatically removing some unused packages.
    • Tick the second green box, IntelliJ idea will automatically help us to import the required packages when we write the code. But for those same-name packages that need to be Alt + Enter imported manually, IntelliJ idea is not yet smart enough to make judgments for us.

[IDE] Intellij Idea Learning Finishing

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.