neilChenXie / ChenJava

Maven,Eclipse,Spring,Mybatis,Shiro
http://chen-node.com/ChenJava/
0 stars 0 forks source link

IDEA #2

Open neilChenXie opened 8 years ago

neilChenXie commented 8 years ago

Start

https://www.jetbrains.com/idea/documentation/

Find&Search

⌘O search for class

⇧⌘O search for file

⌥⌘O anything in file

⌘F12 struture in file

⌘E recent files

F2/⇧F2 syntac error jump

⌥⌘↑/⌥⌘↓ compiler error jump

⌃↑ and ⌃↓ keys to quickly move between methods in the editor.

Edit

⇧⌘V

clipboard selection

Auto Format

Code | Reformat Code

⌃⇧J

join 2 lines

Class Manufacto

⇧F6 (Refactor | Rename) ⌃O (Override) ⌃I (Implement)

Comment

⌘/ and ⌥⌘/

Comment & Block Comment

Template

⇧⌘⏎

create Surround

⌥⌘T

(Code | Surround With) You can customize the bodies of the generated catch blocks on the Code tab of File | Settings | File and Code Templates.

Autocomplete

⌃Space

traditional autocompletion and name suggestion

⌃⇧Space

SmartType

accept the suggestion

⌘P

a list of valid parameters

Shift+click

close tabs in the editor

⌘N

(Code | Generate)

⌃⇧Space

new

⌥⌘V

simplify complicated statements in your code

Class Navi

⇧⌘⌫

last modified place

⌃H

inheritance hierarchy for a selected class

⌥F7

all places where a particular class, method or variable is used in the whole project by positioning the caret at the symbol's name or at its usage in code and pressing ⌥F7 (Edit | Find | Find Usages in the popup menu).

F1

See javadoc

⇧F1

browser view doc

⌥F1

To quickly select the currently edited element (class, file, method or field) in any view (Project view, Structure view or other)

⌥↑

(extend selection) in the editor selects the word at the caret and then selects expanding areas of the source code. For example, it may select a method name, then the expression that calls this method, then the whole statement, then the containing block, etc. You can also select the word at the caret and the expanding areas of the source code by double-clicking the target areas in the editor.

⌘B

To navigate to the declaration of a class, method or variable used somewhere in the code, position the caret at the usage and press ⌘B (Navigate | Declaration). You can also click the mouse on usages with the Ctrl key pressed to jump to declarations.

⌥⌘B

To navigate to the implementation(s) of an abstract method

⌃⇧Q

to see the declaration of the current method without the need to scroll to it.

window

The ⎋ key in any tool window moves the focus to the editor. ⇧⎋ moves the focus to the editor and also hides the current (or last active) tool window. The F12 key moves the focus from the editor to the last focused tool window.

Debug

To easily evaluate the value of any expression while debugging the program, select its text in the editor (you may press a ⌥↑ a few times to efficiently perform this operation) and press ⌥F8.

To quickly evaluate the value of any expression while debugging the program, hold Alt and click this expression to see its value and calculate it, call a method, etc.

Function to Try