IntelliJ Idea Optimization Summary

Source: Internet
Author: User

1. Modify JVM Parameters (IntelliJ idea 10.0.1 contains the above version does not need to be set)

Modify the Idea.exe.vmoptions configuration file to adjust the following:
-xms256m
-xmx384m
-xx:maxpermsize=128m
-xx:newratio=4
-xss128k
-dsun.awt.keepworkingsetonminimize=true
-server
-xms256m set the initial amount of memory, you need to set a reasonable value, increase this value can increase the startup speed of the Java program. If your memory is large enough, such as 2G, you can set it to 400m.
-xmx384m sets the maximum amount of memory to increase this value, which reduces the frequency of memory garage collection and improves program performance.
-dsun.awt.keepworkingsetonminimize=true can keep idea in memory when it is minimized to the taskbar, and when you get back to idea, it can be quickly displayed, rather than being gradually exposed by the gray-white interface, Speed back to the original interface.
-server controls the way memory garage, so you don't have to wait for a minute or two in the Memory garage collection.

2. Optimized file saving and project loading

Cancel "Synchronize file on Frame activation" (Sync files function, as appropriate, can not cancel)

Cancel the selection of "Save files on Frame deactivation"
At the same time we select "Save files automatically" and set it to 30 seconds, so idea can still automatically keep the file, so at each switch, you need to press Ctrl+s to save the file
Cancel Settings->general remove reopen last project on startup setting IntelliJ do not open the project file when idea starts:

3. Mark the edited file with *

Editor–> Editor Tabs
—————————————–
In idea, you need to make the following settings so that the modified files will be marked with an * number, and you can save the relevant files in time.

Mark modified tabs with asterisk

4. Display Line Numbers

How to display line numbers: Settings->editor->appearance tab items, tick show lines numbers


5. Customizing keyboard shortcuts

If the default code hints and complement shortcut keys conflict with IME, how to resolve: Settings->keymap


6. How to make the cursor non-arbitrary positioning

Settings->editor remove allow placement of the caret after end of the line.



7. Chinese garbled problem

settings-> File encondings Select IDE encoding for GBK.

When you include a Chinese file name or a folder, will it appear?? Garbled, the workaround is as follows:

File menu->settings->colors & Fonts->editor font= song body, size=12, line spacing =1.0

Settings->appearance Check override default fonts by (not recommended), set Name:nsimsun,size:12

8. Cancel the Code spelling checker

settings->inspections > Spelling > Typo

IntelliJ Idea Optimization Summary

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.