The most complete collection of IntelliJ Idea shortcut keys used most complete collection of IntelliJ Idea Keyboard Shortcuts

1. Automatic code -------- -----------

Commonly used fori / sout / psvm + Tab to generate cycle, System.out, main methods boilerplate boilerplate code

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. After the code labels entered, press Tab, the generated code.

Ctrl + Alt + O optimization of classes and packages introduced

Alt + Insert generated code (e.g., get, set method, constructor, etc.) or right (the Generate)

fori / sout / PSVM + Tab

Ctrl + Alt + T generated try catch or Alt + enter

CTRL + ALT + T in the selected code TRY {} IF {} ELSE {} in

Ctrl + O override method

Ctrl + I implementation

Ctr + shift + U case conversion

ALT + ENTER imported packages, auto-correction

ALT + / code hints

Automatic code CTRL + J

Ctrl + Shift + J, the integration of two acts of his party

CTRL + Space code hints

CTRL + SHIFT + SPACE Code autocomplete

CTRL + ALT + L formatting code

CTRL + ALT + I auto-indentation

CTRL + ALT + O optimized introduction classes and packages

ALT + INSERT generated code (such as GET, SET method, constructor, etc.)

CTRL + E recently changed the code

CTRL + ALT + SPACE class or interface name prompt

Method Parameter prompt CTRL + P

CTRL + Q, you can see the current method statement

 

Shift + F6 Reconstruction - Rename (packages, classes, methods, variables, and even notes)

Ctrl + Alt + V variables extracted

2. Shortcuts -------- ----------- Queries

Ctrl + Shift + Backspace to jump to the last editor of the

CTRL + ALT + front and rear left / right navigation edited place

ALT + 7 left window shows the structure of the current document

Ctrl + F12 shows the structure of the floating current file

ALT + F7 Find your function or variable or class of all references to the place

CTRL + ALT + F7 Find your function or variable or class of all references to the place

Ctrl + Shift + Alt + N find methods or variables class

Double-click the SHIFT find files in all directories of the project

Ctrl + N Find a class

Ctrl + Shift + N Find File

Positioning line CTRL + G

CTRL + F to find text in the current window

CTRL + SHIFT + F to find text in the specified window

CTRL + R replacement text in the current window

CTRL + SHIFT + R replace text specified window

ALT + SHIFT + C to find modified files

CTRL + E recently opened files

F3 to find keywords that appear down position

SHIFT + F3 up a keyword appears location

Select the text, press Alt + F3, highlighting the same text, F3 down one by one to find the same text

Find F4 variable sources

CTRL + SHIFT + O pop-up display Find Content

Ctrl + W to select the code, there will be other effects of continuous press

F2 or Shift + F2 to quickly locate the highlighted errors or warnings

Ctrl + Up / Down cursor jumps to the first or last row

Ctrl + B or class quickly open at Cursor

CTRL + ALT + B to find all of the subclasses

CTRL + SHIFT + B to find a class variable

Ctrl + Shift + keys to move up and down the code

Ctrl + Alt + left / right to return to the position last visit

Ctrl + X Delete Row

Ctrl + D to copy the line

Ctrl + / or Ctrl + Shift + / comments (// or /*...*/)

Ctrl + H show class structure in FIG.

Ctrl + Q Show Comments document

Alt + F1 to find the code location

Alt + 1 Project panel quickly open or hidden

Alt + left / right switching code view

ALT + ↑ / ↓ rapid traverse positioning method between

CTRL + ALT + front and rear left / right navigation edited place

Ctrl + Shift + Backspace to jump to the last editor of the

Alt + 6 Find TODO

3 .--------------------- other shortcuts -------------------

SHIFT + ENTER starts a new line

CTRL + Z reverse (undo)

CTRL + SHIFT + Z forward (to cancel the revocation)

CTRL + ALT + F12 to open the Explorer folder

ALT + F1 Find a file directory location

SHIFT + ALT + INSERT vertical editing mode

CTRL + F4 to close the current window

Ctrl + Alt + V, variables can be introduced. For example: new String (); automatically import variable definition

Ctrl + ~, fast switching scheme (look and feel, style code, the menu shortcut key mapping)

4 .-------------- svn shortcuts ---------------

ctrl + k submit code to SVN

update code ctrl + t

5 .-------------- debugging shortcuts ---------------

In fact, that is commonly used F8 F7 F9 most noteworthy is the Drop Frame allows code to run off all over again

alt + F8 debug checked to see value

Alt + Shift + F9, select Debug

Alt + Shift + F10, select Run

Ctrl + Shift + F9, compiled

Ctrl + Shift + F8, view the breakpoint

F7, entering

Shift + F7, entering intelligent

Alt + Shift + F7, forcibly entered

F8, step over

Shift + F8, stepped out

Alt + Shift + F8, forced to step over

Alt + F9, to run the cursor

Ctrl + Alt + F9, forced to run the cursor

F9, recovery program

Alt + F10, positioning the breakpoint

--------------- 6 .-------------- reconstruction

Ctrl + Alt + Shift + T, the pop-up menu reconstructed

Shift + F6, rename

F6, mobile

F5, copy

Alt + Delete, delete safe

Ctrl + Alt + N, inline
7 .------------------- Note --------------


============================================================

Ten Intellij IDEA shortcuts

Intellij IDEA has a lot of shortcuts addictive, there are some interesting discussion on stackoverflow. Everyone has their own favorite, would like to discharge an ideal list really is difficult.

Previously collated shortcuts Intellij, this time on the frequency of use during my daily development, a simple classification listed my top ten favorite fast - God - key it.

1 smart tips:

Intellij Intelligence bear the brunt of course, it 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 a little, 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 finished another explosion Eclipse 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.

Code Generation 3:

This is similar to the 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 Editor:

Editing 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 Open:

Similarly 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 are 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 aid:

God accompanied by a number of these 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.

Ø 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

CTRL + ALT + front and rear left / right navigation edited place

Ctrl + Shift + Backspace to jump to the last editor of the

Guess you like

Origin www.cnblogs.com/liyy7520/p/11899684.html