IDEA of some common settings

A, idea commonly used settings
1, error-level
    idea default need not be the same as ctrl + s to save eclipse, and when you save will be compiled (can be carried out in the File "Settings" Build, Execution, Deployment "make project automatically Compilation of check the settings). But the idea is also capable of error, and we can set the error level is defined, you can click on the bottom right corner of the avatar's idea of an icon, as shown below:

 

 

    1), None
    no error, similar to FIG open Power Save Mode (power-saving mode, the follow-up will be explained).

    2), Syntax
    syntax level, similar to the eclipse of error.

    3), Inspections
    can check the spelling of words, syntax is wrong, and methods of using variables recalls.

2, the automatic Import package
    can be provided in the leader packet related operations under File "Settings" Editor "General" Auto Import, as follows:

 

 

 

    1), inert import on paste
    when the paste is carried out when, how paste import package. The default is ask, the need query operation; may be set to none, nor introduced without asking; not all arranged directly introduced to an inquiry.

    2), Optimize import on the fly ...
    When no class, Import guide package itself deleted, and the eclipse, each time it needs to use ctrl + shit + o collation, this is very convenient.
    3), Add unambiguous inport on the fly
    explicitly added import dynamics, such as when I type Map, and may be prompted to import.

3, power-saving mode
       may Mode in File "Power Save or the above mentioned error level is set, after setting code hinting and close inspection.
4, to quickly locate a row of a file
    using ctrl + alt + n in the input box that pops up, as index.jsp: line number

5, window settings
    1), automatically hide inactive window
    remove the check option Pinned Mode, you can hide out in an inactive case, the active window to leave maximum space. If not take effect, such as Project window, it may be that checked Autoscroll from source and AutoscrollfromSource option as:

 

 

 2), window restoration

    Such as the original when using the eclipse, do not accidentally close a window, you need to re-open the window (often want to return to the ctrl + z), which provides undo the last window in the idea of ​​the way in, as shown below :

 

 

3), the open window disposed project
    idea in general, a is a project workspace, the workspace not eclipse can load multiple items. Then open a new project, set up the relationship between the project and the window can be set by File "Settings" Appearance & Behavior " System Settings> Project Opening, as follows:

    open project in new window: Open the project in a new window

    open project in the same window: Open the project in the current window

    confirm window to open peoject in: asks the operator (default entry)

6, document history management
    in addition to version management tool provides a history of the local file operations, idea you can use: Select the code is "right" Local History historical code view.

7, shortcut set
    1) replace the shortcut key
    idea provides a powerful code hints and completion, but we can also set up a similar eclipse in the ctrl + / tips, default ctrl + spacebar to set the idea in, but this and input switching shortcut key conflicts, so under normal circumstances we need to re-set, using the same eclipse ctrl + customary /. The original settings can be removed File "Settings" keymap "inquiry Basic, to be replaced, as shown below:

 

 

2), suggesting that the case sensitivity setting    
    By default, the idea of code hints and completion is to find according to the first letter lowercase (for example, I will not be prompted to enter the test Junit's Test), if necessary, in the File "Setting carried out "Editor" General "Code Compilation setting, may be provided to all or none, as shown below:

 

 

Second, the commonly used shortcuts
  recently discovered a shortcut key idea to write more full, you can find or attention: comparison of the whole idea shortcut keys
1, psvm or main
    shortcuts main method
2, ifn
    equivalent if (a == null )} {shortcut

. 3, Sout, soutm, soutp, soutv
    System.out.printly () of the plurality of types of shortcuts

. 4, Alt + INSERT
    the Generate (getters, the setter, constructor, etc.), corresponding to the eclipse ctrl + alt + s

5, ctrl + e
    selection recently opened file.

6, ctrl + shift + e
    Select recently edited files

7, ctrl + tab
    switching window of recently used files include

8, alt + enter
    automatically imported package, if Optimize import the above-mentioned opening on the fly, do not change the operation

9, the code format
    ctrl + alt + o: import formatted

    ctrl + alt + L: formatting code (there may be a shortcut conflict, need to pay attention)

10, Ctrl + Alt + L
    want with Ctrl + Alt + L, Introduce local variable eclipse in, completion (generation) and the type of return value of the current variable definitions     

11, editing shortcuts
    ctrl + y: Delete Rows

    ctrl + d: OK replication

    ctrl + /: comment line

    ctrl + w: automatically selected block of code in the syntax, the reverse select: ctrl + shift + w

    ctrl + left or ctrl + right: cursor movement back and forth in accordance with a word or grammar

12, find the shortcut key
    ctrl + n: look for classes or resources, and can be fuzzy query
    twice shift: from anywhere to search
    ctrl + shift + f: content search (search in path)

Guess you like

Origin www.cnblogs.com/qingmuchuanqi48/p/11909569.html