IntelliJ idea will be shortcut keys, multiply improve the development efficiency

Source: Internet
Author: User
Tags try catch

Referenced from: 52333601

positioning, switching, inheritance relationships, calling relationships, finding and replacing, navigating navigation, search, replace, and moreFirst, entry or return method (1) Brief introduction
    1. Ctrl+b: View method definition or Return method call place (with Ctrl + click equivalent); (bidirectional)
    2. ctrl+alt+b: Ctrl+alt+b enters the definition of the interface or subclass of the class or sub-method , and (unidirectional) enters the override place;
    3. ctrl+f12 : View all methods of the current class ;
    4. Ctrl+h: Displays the current class inheritance relationship structure diagram;
    5. Ctrl+q: Displays the doc comment description on the class/method/variable;
(2) Detailed introduction
    1. ctrl+b: View method definition or Return method call place (with Ctrl + click equivalent)

Go to the place where the cursor is defined or return to the place where the method is used (instead of Ctrl + Mouse click Method to enter the way, to avoid the finger between the keyboard and mouse switch , very useful shortcut keys)

Further explanation: The View method definition is unique, go directly in, but return, because there may be multiple calls to the method, so there will be a list, the call that just entered will be selected by default.

?

    1. Ctrl+alt+b:ctrl+alt+b into the definition of a subclass or sub-method of the interface or class;
    2. Ctrl+f12 See all the methods of the current class; benefit: You can quickly find a method of the class.
    3. Ctrl+h shows the structure diagram of this kind of inheritance relationship;
    4. CTRL+Q Displays the doc comment description on the class/method/variable;
Second, search, find and replace Search/replace
    1. Global Search:
    1. Double Shift: Search everywhere, global searching, including class name, filename, file content, etc.;
    2. CTRL + N: Search for class files: *.java;
    3. Ctrl+shift+n: Search for arbitrary files: * *;
    1. Recently opened files
    1. ctrl+tab: Toggle the recently opened file, switcher;
    2. ctrl+e: To view recently opened files, select the upper and lower keys, enter to open the file.
    3. alt+left/right: The window has been opened by the switch of the file.
    1. In-File search, find, and replace
    1. ctrl+g : Navigate to a row, go to line ;
    2. Ctrl + f/r: Find and replace inside the file;

After you add the shift:Ctrl + Shift + f/r: Represents a Find or replace in the current project engineering.

after the search, use F3 and Shift+f3 switch quickly.

F3 : Find Next ; Shift+f3 : Find Previous

?

Third, cursor positioning
    1. Ctrl+alt+left/right: Cursor is positioned at the previous/next browse location ;
    2. Ctrl+shift+backspace: The cursor is positioned to the place where it was last modified ;
    3. Alt+up/down: Moves the cursor to the previous/next method starting point;

ctrl+f12 : is a list of all methods of the current class;

    1. Ctrl+left/right: Move the cursor to the previous/next word,

Ctrl+shift+left/right: Add Shift key to create a continuous selection effect;

    1. CTRL + + + or-: Current method Expand/collapse, add Shift key, all methods expand/collapse;
    2. ctrl+[or]: Move the cursor to the front/back code block, add Shift key, produce the selected effect;

Used to determine the correspondence of curly braces;

    1. F2: Quickly navigate to the next error and warning, add Shift key, and navigate to the previous error;
    2. Ctrl+w the code by the syntax, the continuous press will have other effects, plus shift key, to produce a reverse selection effect
    3. Ctrl+alt+v suggest that the selection is a local variable
Iv. deletion and insertion
    1. Ctrl+d: Copy the current line or copy the selection;
    2. Ctrl+y: Delete the current row;
    3. Alt+shift+up/down: Moves the current line up/down or moves the selected line ;
    4. Ctrl+shift+up/down : whole up/down Move statement block/method;

like for statement block, overall move for statement block;

If the cursor is on the method definition line, move the method as a whole.

    1. ctrl+alt+t: In the case of the selected code, Surround with (if/else/try catch ...) quick package code;
    2. Ctr+shift+u: Case Conversion
    3. ctrl+backspace: Delete by word;

BACKSPACE is deleted by character;

    1. Shift+enter: Insert new line down, smart enter, no matter where the cursor is in the current line;

Enter is the direct carriage return;

Ctrl+shift+enter: First complete the current line code, and then insert a new row;

    1. Ctrl+alt+enter Insert new Row up
Wu, Navigation

?

IntelliJ idea will be shortcut keys, multiply improve the development efficiency

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.