1, such as input eclipse below the main,sysout, etc., in the idea can also be implemented, as follows:
Java code
- Sysout (Sout press TAB), Main (PSVM press TAB), you can follow ctrl+j
2. Performance optimization
Java code
- 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 allows idea to beminimized to the taskbar while still maintaining the memory of possession, when you return to idea, can be quickly displayed, rather than by the Gray interface gradually showing the entire 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.
3. Optimized file saving and project loading
Java code
- Cancel the selection of "Synchronize file on Frame activation" and "Save files on Framedeactivation"
- 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
- How to make IntelliJ idea move without opening the project file: Settings->general remove reopen last project on startup
4. Mark the edited file with *
Java code
- 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 modifyied tabs with asterisk"
5, Display line number
Java code
- How to display line numbers: Settings->editor->appearance tab items, tick show lines numbers
6. Customizing keyboard shortcuts
Java code
- If the default code hints and complement shortcut keys conflict with IME, how to resolve: Settings->keymap
7, how to let the cursor is not arbitrary positioning
Java code
- Settings->editor remove allow placement of the caret after end of the line.
8, Chinese garbled problem
Java code
- 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= Arial, size=, line spacing =1.0
- File menu->settings->appearance-> Font name=simsun,size=
9. How to display Chinese perfectly
Java code
- Settings->appearance Check override default fonts by (not recommended), set Name:nsimsun,size:
10 Editing automatic hints
Java code
- Editor->code completion->autopopup Three options are selected, all set to 0
- Case Sensitive Completion->none
- Parameter Info->autoopopup in-0
11, some useful shortcut keys
Java code
- ctrl+shift+n Find file
- ctrl+alt+l Format code
- ctrl+alt+o optimize imported classes and package
- alt+/ Auto-complete code NOTE: Default is conflicting with IME, in setting-> keymap->main menu->code->complete code->basic
- ctrl+p method parameter hint
- ctrl+x Delete line
- ctrl+d copy line
- ctrl+h Displays the class structure diagram
- ctrl+q the comment document   
- [B]alt+1 Quickly open or hide the project panel [/b]
- f2 or shift+f2 highlight errors or warnings to quickly locate
- code tag input completed, Press TAB to generate the code.
- Select the text, press CTRL+SHIFT+F7&NBSP, highlight all the text, and press ESC to highlight the disappear.
- ctrl+w Check the code, press the other effects in succession
- Select the text, press ALT+F3&NBSP, and look down the same text, and highlight it.
- ctrl+up/down the cursor jumps to the first or last line
- ctrl+b quickly open the class or method at the cursor
Reprinted from:
http://gagi.iteye.com/blog/633778
Http://wenku.baidu.com/view/f4111d0af12d2af90242e6f1.html
Idea shortcut keys (for personal use)