IntelliJ Idea shortcut key

Source: Internet
Author: User
Tags code tag

==ctrl==

Ctrl + Y Delete rows

CTRL + X cut rows

Ctrl + N Find class

Ctrl + R Replacement

Ctrl + O Select a method to overwrite/inherit

Ctrl + F Find in current code

Ctrl + J Automatic code hints (prompt for your own defined code format)

Ctrl + D copy rows or blocks (this is the default) (but I'm generally accustomed to copying lines, excluding blocks, searching duplicate Lines)

Ctrl + P method parameter hints display

Ctrl + W Selects the word that the cursor is in, successive presses will have other effects (instead of ctrl+shift+w)

CTRL + Q mouse on the variable/class name/method name and so on (can also press when prompted to add), display the document content, with a similar function with a CTRL + Shift + I

Ctrl + B quickly opens the class or method at the cursor (good for front-end support, such as the ability to navigate directly to the file location of the CSS via the class's name) (equivalent to CTRL + CURSOR pointing)

Ctrl + E recently opened file

Ctrl + U Go to the parent class method/Parent class

Ctrl + K vcs submit project

Ctrl + T vcs update project

Ctrl + G jumps to the specified line

Ctrl + H Display class hierarchy diagram

Ctrl + F1 Display errors

Ctrl + F3 to the next name of the selected word

Ctrl + F9 Compilation

CTRL–F12 Quick Navigation in the currently edited file (you can type the letter directly, IntelliJ idea will filter what you entered to match the corresponding method, to quickly locate it) (similar to the structure diagram)

Ctrl + F11 pop-up a small box to add bookmarks (can work on a file or folder)

Ctrl + Tab Edit window Toggle (If you press DELETE in the process of switching, close the selected window)

Ctrl + DELETE Delete the word after the cursor

Ctrl + home/end jumps to the end of the file header file

Ctrl + BackSpace Delete the words in front of the cursor

Ctrl + [or] move the cursor to the beginning/end bracket of the block

Ctrl +/or ctrl+shift+/comments (//or/*...*/)

Ctrl + 1,2,3,4 .... Quickly navigate to the bookmark code (you must first ctrl+shift+1,2,3,4 ... Add bookmark)

Ctrl + Space Code completion prompt (because Windows is used by default input method, you can change the next)

Ctrl + Numpad +/-collapse/Unwind code

Ctrl + mouse Click on the file title of the edit window to pop up the file path, which can be opened by this file location (equivalent to CTRL+ALT+F12)

Ctrl + direction left/Right cursor jumps to top/next word

Ctrl + direction up/down equivalent to sliding the wheel with your mouse (in order to facilitate the mouse party)

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

==alt==

ALT + 1 Open/close Project tab

Alt + ' This key is the tab above, when pressed, if the project has version control, then display the Common version control command

Alt + A Adds the newly created file (self-added, in the Subversion category) in SVN

Alt + Q To view the declaration of the method (a tip layer tip appears in the upper left corner), you do not need to scroll up to view

Alt + F1 Pop-up file Select target, this is very useful

ALT + F2 Multiple browser previews

Alt + F3 Select the text, look down the same text, and highlight it.

Alt + F7 See where the method/variable/class is called

Alt + F8 in the state of debug, select certain variables or objects, press the shortcut key to pop up the input variables, methods of the Debug box, to specify the debug condition to see the content

Alt + Home jump to file navigation bar

ALT + Insert generated code (e.g. Get,set method, constructor, etc.)

Alt + arrow key left or arrow right toggle the currently open code file view

Fast positioning between methods with ALT + ARROW keys or arrow keys

Alt + left mouse button Click, drag can be directly block area selection (useful)

Alt + Enter quick fix (can be used to import a single package)

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

==shift==

Shift + F6 Refactoring: renaming

Shift + F11 View bookmarks

Shift + F10 Run current program, equivalent to clicking the Run button

Shift + F9 Debug Current program, equivalent to click the Debug button

Shift + END check from cursor to end

Shift + Home Check from cursor to home

Shift + Enter The line where the cursor is positioned and the cursor jumps

Shift + Click to close the file

Shift + Roller Rolling axis scrolling (very powerful)

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

==ctrl+alt==

Ctrl + Alt + W Close all edit shortcuts (add yourself, at close all)

Ctrl + Alt + O optimize imported classes and packages

Ctrl + Alt + L format code

Ctrl + Alt + I Select Auto Indent (sort of formatting, but just sort the row formatting)

Ctrl + Alt + T selected place code surround hint

Ctrl + Alt + B jumps to the specific implementation method, find the interface/abstract method of the specific implementation is very useful (the opposite behavior of the shortcut key is ctrl+b)

Ctrl + Alt + V Quick introduction of a variable

Ctrl + Alt + F7 to find the place to be used by the class or variable, use the popup box to find it, the same as the alt+f7 effect, but because it is a popup box, the selection of a position will disappear.

Ctrl + Alt + Enter a row above the line where the cursor jumps

Ctrl + Alt + Home popup is associated with the current file directory (such as the JSP has imported a few JS and CSS, these files are related files)

Ctrl + Alt + direction left/right bounce/forward to last action place

Ctrl + Alt + direction up/down in Find mode, pick up/Next Find file

Ctrl + Alt + Space class name or interface name hint (most commonly, typing letters will prompt, but if you accidentally ESC, you can press this again)

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

==ctrl+shift==

Ctrl + Shift + F Find a file (by a word, specify the type of file you want to search, the directory (as with the Ctrl+h feature in MyEclipse))

Ctrl + Shift + U//big/lowercase is this shortcut key

Ctrl + Shift + V Pastes some recently copied information

Ctrl + Shift + Z, cancel undo (redo last action)

Ctrl + Shift + T If you press it under the General class, the corresponding test class that pops up has been written, and if you press it under the test class, go directly back to the source class.

Ctrl + Shift + C Copy the current file disk path to the Clipboard

Ctrl + Shift + J automatically merges the next line to the end of the current line

Ctrl + Shift + E recently changed files

Ctrl + Shift + I in the method name or class name (or code to add hints can also press, or in the picture address), press this shortcut to display the method or class of source structure, no need to click into the source code (of course, you have to import the source of the case only to see) like Ctrl + Q

Ctrl + Shift + R searches for specified range file, replaces text

Ctrl + Shift + N locates files by entering a file name (you can enter a partial name, support Blur)

Ctrl + Shift + F12 editor fullscreen

Ctrl + Shift + F7 Highlight all of the selected text and press ESC to highlight the disappear. (also available in throws or try.) Catch above press this shortcut key, such as in a method of throws word Press this shortcut key, will be what internal methods will throw exception show)

Ctrl + Shift + Del Delete wrapping Labels

Ctrl + Shift + ... Quickly add bookmarks

Ctrl + Shift + Space Auto-complete code (smart tip)

Ctrl + Shift + Enter line at the end of the auto-add; The end code, if the input if, press this shortcut will automatically help you to add () {}

Ctrl + Shift + Enter automatically adds to the end;

Ctrl + Shift + up or down moves the cursor in the statement field to the top/bottom (13 version will be automatically formatted) (if the cursor is placed on the method name, is the interchange method position, if the tool interface is open, and is vertical layout, the window size is adjusted according to the direction)

Ctrl + Shift + left or right to open the tool interface, if it is horizontal layout, then adjust the window size according to the direction.

Ctrl + Shift + [or] Select from the cursor location to its parent area (the upper navigation may be more open)

Ctrl + Shift + keypad + or – collapse/Expand All code

Ctrl + Shift + Space Code completion (the most commonly used, usually typed letters will prompt, but if you accidentally ESC, you can press this out again)

Ctrl + Shift + left or right to select the left/right side of the word or symbol

Ctrl + Shift + Backspace (BACKSPACE) go back to where you last modified (unlike the ctrl+alt+ around the arrow keys, just fall back to where you left off, not where the cursor was in the past)

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

==alt+ Shift ==

Alt + Shift + N Add task

Alt + Shirt + F Add to Favorites

Alt + Shift + C to see a list of changes to the most recent action item (under version control, the display is relatively slow)

Alt + Shift + F10 pop-up run menu, provide selective run which (this need to try it yourself, press after will have popup box, remember to view)

Alt + Shift + F9 pop-up debug run menu, provide optional debug which (this needs to try it yourself, press after will have popup box, remember to view)

ALT + SHIFT + ARROW key or arrow key move cursor line up/down

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

==ctrl+shift+alt==

Ctrl + Shift + Alt + V simple paste

Ctrl + Shift + Alt + N Find a method or variable in a class

Ctrl + Shift + Alt + C Copy reference information, such as pressing this shortcut on a method name to get the following: Org.jfree.data.general.defaultpiedataset#setvalue ( Java.lang.Comparable, double) contains the package name, class name, method name, method variable

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

= = Other = =

F11 adding bookmarks

F4 where the cursor is placed (even a small portion of a path's URL) jumps to the location under this path, open from the Left web window of IntelliJ idea

F2 or SHIFT+F2 highlighting error or warning quick location (in case the code has an error)

When the code tag is entered, press TAB to generate the code.

In ctrl+f find mode, press F3 next point

In debug mode, F8 Next, F9 next breakpoint

Change the Move down shortcut search down

CTRL + Mouse click the file title of the edit window, pop up the file path, you can open the file by this location side

Press tab+ to drag the code label to separate IntelliJ idea into multiple

IntelliJ Idea shortcut key

Related Article

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.