Idea shortcut keys, etc.

Shortcuts new objects: ctrl + alt + space

 The final list
this list too luxurious lineup, after several were so useful, not weakness.

Ø Top # 10 cut to cut: Ctrl + Tab

Ø Top # 9 choose what you want: Ctrl + W

Code generation Ø Top # 8: Template / Postfix + Tab

Ø Top # 7 orders: Ctrl + Shift + A

Ø Top # 6 nowhere to hide: Shift + Shift

Ø Top # 5 auto-complete: Ctrl + Shift + Enter

Ø Top # 4 created all things: Alt + Insert

Too hard to break away, it tied for the top three!

Ø Top # 1 Smart Completion: Ctrl + Shift + Space

Ø Top # 1 Self-Healing: Alt + Enter

Ø Top # 1 reconstruct everything: Ctrl + Shift + Alt + T

 

Breakpoint debugging:

shit+f9  debug

shit+f10  run

F7 to enter: execute code line by line, if they entered the custom function, then enter the custom function (do not enter the library function)

F8 Step Out: execute code line by line, if they are entering a custom function to return the results directly to the next line of code, you will not enter the custom function

F9 execution to the next breakpoint

mute mute breakpoints will mute all breakpoints, then F9 to perform, so the program will skip all breakpoints behind.

 

1 smart tips
Intellij Intelligence bear the brunt of course, is smart! The basic code hints with Ctrl + Space, there are more intelligently by type, message alert Ctrl + Shift + Space, but because Intellij always struck us as automatically prompts, so a lot of time will not knock these two quick manual key (unless prompt box disappears). With F2 / Shift + F2 to move to the error code, Alt + Enter quick fix (ie the Quick Fix feature in Eclipse). When smart tips for our auto-complete method names, we usually make up their own anti-tailed brackets and semicolons, when many layers of nested parentheses will be trouble, then we just knock Ctrl + Shift + Enter will be able to auto-complete characters all end. May automatically make up the braces {} brackets and not just when, for example, the clincher if / for.

Finally one o'clock, Intellij can intelligently profiles and classes Spring, Hibernate and other mainstream framework of inaction, in the seemingly "static" appearance, intelligently scanning understand how your project is constructed and configured.

2 reconstruction
Intellij reconstruction is complete explosion Eclipse another function, staggering degree of intelligence, automatically checks all the matches simultaneously extracted into the variables such as when a variable is extracted. In particular, read the "reconstruction - improvement of existing code design" after, with Intellij fit downright hooked! It is also a powerful intelligence and reconstruction capabilities in the TDD development Intellij very smooth.

Cut to the chase, invincible start with a large refactorings Summary shortcut Ctrl + Shift + Alt + T, is called Refactor This. According to law a little more complicated, but also in line with Intellij style, many shortcuts have completed both hands, unlike many of the most useful Eclipse shortcuts can be smartly done with one hand (do not know if it's a big advantage for Eclipse), but they used the Emacs they would think nothing of (non-Emacs black). In addition, some of the most common reconstruction technique, because too common, if every election in the Refactor This menu, then some low efficiency. For example, Shift + F6 is directly renamed, Ctrl + Alt + V is the extraction of variables.

3 code generation
that is similar to Eclipse, while not unique, but because the high frequency of daily use, so it is still listed in the front of the list. Commonly used fori / sout / psvm + Tab to generate cycle, System.out, main methods boilerplate boilerplate code with Ctrl + J can view all templates. Behind the "auxiliary" will be mentioned in an Alt + Insert, click constructor may be generated in the edit window, toString, getter / setter, override inherited methods and the like. These two techniques is too common, and almost every day to generate a bunch of main, System.out and getter / setter.

In addition, Intellij IDEA 13 suffix added to the auto-complete function (Postfix Completion), more flexible and powerful than the template generation. For example, to enter for (User user: users) simply enter user.for + Tab. As another example, to enter Date birthday = user.getBirthday (); just enter user.getBirthday () var + Tab can.

4 Edit
edit in God have to say a big key is the ability to automatically according to the selected code syntax Ctrl + W and reverse the Ctrl + Shift + W. Further, Ctrl + Left / Right Move the cursor to the front / rear word, Ctrl + [/] to move to the front / rear block, these classes Vim style cursor movement is a highlight. Above Ctrl + Left / Right / [] Shift plus the selected code inside words can skip range. Forward / Backward moved to the front / rear method Alt +. And some very ordinary, like Ctrl + Y to delete rows, Ctrl + D to copy the line, Ctrl + </> collapsed code is not to say.

Move the cursor a little more about the extension, in addition to the features already provided Intellij itself, we can also install ideaVim or emacsIDEAs enjoy Vim and Emacs are rapidly moving AceJump function (super cool!). In addition, Intellij bookmark function is good, the definition of 1-10 bookmarks with Ctrl + Shift + Num (again according to this shortcut is to delete a bookmark), then Ctrl + Num jump. This avoids the previous multiple use / edit the next position Ctrl + Left / Right to jump back and forth trouble, but this shortcut default hotkey conflict with Windows (default more Alt, Windows and change the display shows the direction of the conflict, accidentally display becomes the explicit backwards, Jiong ah).

5 Find Opens
similar Eclipse, Intellij of Ctrl + N / Ctrl + Shift + N to open the class or resource, but some of the more intelligent Intellij, any character we enter will be seen as fuzzy matching, save the Eclipse there's input * trouble. The latest version of IDEA also joined the Search Everywhere, you simply need to search anything in a pop-up box, press Shift + Shift, including classes, resources, configuration items, methods, and so on.

Class hierarchy is available Ctrl + H open window class hierarchy, the inheritance hierarchy of the jump with Ctrl + B / Ctrl + Alt + B respectively parent and child or parent class defines methods or sub-implemented method, view the current class All methods use Ctrl + F12.

Looking using the class or method is very simple, Alt + F7. To find the location of the text appeared to use Ctrl + F / Ctrl + Shift + F to find in the current window or the whole project, coupled with the F3 / Shift + move to the next match at around F3.

Intellij more intelligent is another evidence in any menu or display window, you can directly enter the word you're looking for, Intellij will automatically filter for you.

6 other auxiliary
these gods accompanied by a number of secondary shortcut keys, you can get your hands more than 90% of the time to get rid of the mouse, the keyboard seems to focus on the piano during the show. These humble but it is vital to have the last piece of the puzzle:

Ø command: Ctrl + Shift + A Intellij can find all the commands, and each command it and there are shortcuts. So it is not only the key to a great God, but also to find tools to learn shortcuts.

New Ø: Alt + Insert anything can create classes, methods and the like.

Ø formatting code: import list format Ctrl + Alt + O, format code Ctrl + Alt + L.

Ø switching window: Alt + Num, project structure commonly used are 1, 3 search results, 4/5-debug operation. Ctrl + Tab to switch tabs, Ctrl + E / Ctrl + Shift + E to open recently opened or edited files.

Ø Unit Testing: Ctrl + Alt + T to create a unit test cases.

Ø Run: Alt + Shift + F10 to run the program, Shift + F9 to start debugging, Ctrl + F2 to stop.

Commissioning Ø: F7 / F8 / F9 correspond Step into, Step over, Continue.

In addition, some of my custom, such as horizontal split screen Ctrl + |, etc., and some magical little feature Ctrl + Shift + V to paste the copy had long ago, Alt + Shift + Insert into the column by column mode selected.

Guess you like

Origin www.cnblogs.com/zhaoyanhaoBlog/p/10954255.html