Idea shortcut keys (for personal use)

Source: Internet
Author: User
Tags code tag

1, such as input eclipse below the main,sysout, etc., in the idea can also be implemented, as follows:

Java code
    1. Sysout (Sout press TAB), Main (PSVM press TAB), you can follow ctrl+j


2. Performance optimization

Java code
    1. Modify the Idea.exe.vmoptions configuration file to adjust the following:
    2. -xms256m
    3. -xmx384m
    4. -xx:maxpermsize=128m
    5. -xx:newratio=4
    6. -xss128k
    7. -dsun.awt.keepworkingsetonminimize=True
    8. -server
    9. -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.
    10. -xmx384m sets the maximum amount of memory to increase this value, which reduces the frequency of memory garage collection and improves program performance.
    11. -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.
    12. -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
    1. Cancel the selection of "Synchronize file on Frame activation" and "Save files on Framedeactivation"
    2. 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
    3. 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
    1. Editor–> Editor Tabs
    2. —————————————–
    3. 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.
    4. "Mark modifyied tabs with asterisk"


5, Display line number

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


6. Customizing keyboard shortcuts

Java code
    1. 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
    1. Settings->editor remove allow placement of the caret after end of the line.


8, Chinese garbled problem

Java code
    1. When you include a Chinese file name or a folder, will it appear?? Garbled, the workaround is as follows:
    2. File menu->settings->colors & fonts->editor font= Arial, size=, line spacing =1.0
    3. File menu->settings->appearance-> Font name=simsun,size=


9. How to display Chinese perfectly

Java code
    1. Settings->appearance Check override default fonts by (not recommended), set Name:nsimsun,size:


10 Editing automatic hints

Java code
    1. Editor->code completion->autopopup Three options are selected, all set to 0
    2. Case Sensitive Completion->none
    3. Parameter Info->autoopopup in-0

11, some useful shortcut keys

Java code
      1. ctrl+shift+n  Find file   
      2. ctrl+alt+l   Format code    
      3. ctrl+alt+o  optimize imported classes and package   
      4. alt+/  Auto-complete code   NOTE: Default is conflicting with IME, in setting-> keymap->main menu->code->complete code->basic  
      5. ctrl+p  method parameter hint   
      6. ctrl+x  Delete line   
      7. ctrl+d  copy line   
      8. ctrl+h  Displays the class structure diagram   
      9. ctrl+q  the comment document   
      10. [B]alt+1  Quickly open or hide the project panel [/b]  
      11. f2  or shift+f2  highlight errors or warnings to quickly locate   
      12. code tag input completed, Press TAB to generate the code.   
      13. Select the text, press CTRL+SHIFT+F7&NBSP, highlight all the text, and press ESC to highlight the disappear.   
      14. ctrl+w  Check the code, press the other effects in succession   
      15. Select the text, press ALT+F3&NBSP, and look down the same text, and highlight it.   
      16. ctrl+up/down  the cursor jumps to the first or last line   
      17. 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)

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.