IntelliJ idea--List of common shortcut keys

Source: Internet
Author: User
Tags code tag

I'm just a porter of knowledge. This article is from the lava blog, so be sure to keep this source: http://lavasoft.blog.51cto.com/62575/97730 ALT + ENTER import package, auto fix
CTRL + N Find class
Ctrl+shift+n Finding files
Ctrl+alt+l formatting code Ctrl+alt+o optimizing imported classes and Packages
Alt+insert generate code (such as Get,set method, constructor, etc.)
Ctrl+e or Alt+shift+c recently changed code
Ctrl+r Replace text ctrl+f find text
Ctrl+shift+space Auto-Complete code
CTRL + SPACE code hint Ctrl+alt+space class name or interface name hint Ctrl+p method parameter hint Ctrl+shift+alt+n Find method or variable in class Alt+shift+c compare recently modified code SHIFT+F6 refactoring-Rename
ctrl+shift+ First up key
Ctrl+x Deleting rows
Ctrl+d Copying rows
ctrl+/or ctrl+shift+/Comments (//or/*...*/)
CTRL+J Automatic Code
Ctrl+e recently opened file Ctrl+h show class structure diagram ctrl+q Show comment document
Alt+f1 find where the code is located
Alt+1 quickly open or hide the project panel ctrl+alt+ Left/right return to the location you last viewed
ALT + Left/right Toggle Code View ALT + Up/down move quickly between methods to locate Ctrl+shift+up/down code up/down. F2 or SHIFT+F2 highlighting error or warning when the quick position code tag is entered, press TAB to generate the code. Select the text, press CTRL+SHIFT+F7, highlight all the text, and press ESC to highlight the disappear. Ctrl+w the selected code, continuously press the other effect to select the text, press ALT+F3, look down the same text, and highlight. Ctrl+up/down the cursor jumps to the first or last line Ctrl+b quickly opens the class or method at the cursor-------------I am IntelliJ idea for Mac split line------------------Well, above all Int Ellij idea for Windows shortcut keys, my system is Mac,??  is the IntelliJ for Mac shortcut key. Alt+f7 find out where to use ctrl+shift+gcommand+alt+f7 equivalent to eclipse this is the place where the selected characters appear in the project, not the method variable class, etc., and the difference command+f7 above can be checked Consult the current element in the current file reference, and then press F3 to select, the function is basically the same as Command+shift+f7 selected text after pressing this key combination, highlight all the text, press ESC to highlight disappear.
Alt+f3 selected text Press this key combination to find the same text down one by one and highlight it. SHIFT+F3 is looking up, ctrl+enter. The interface to generate Get,set method Shift+enter change to the next line Command+n Find class command+shift+n Find File command +r replacement ctrl+shift+r can replace a variable command+y the entire project or a directory to delete a row command+d copy a row ctrl+shift+j concatenate multiple rows into one row, and the rows that remove the spaces command+j can be into some automatic code, such as for loop Command+b find the source of the variable with F4 find the source of the variable ctrl+shift+b find the class of the variable belongs to command+g locate command+f find text in the current file F3 look down, shift+f3 look up Ctrl + Shift+f can find variables in the entire project or under a directory equivalent to ctrl+halt+shift+c recently modified files in Eclipse Command+e recently opened file Alt+enter Import package, automatic modification command+alt+l Formatting code command+alt+i Automatic indentation, not many times using the tab or BACKSPACE key, is also a more convenient ctrl+shift+space code completion, this will judge the possible use of this code completion and code hints are not the same command+p Method parameter Hints
Command+alt+t put the selected code in try{} if{} else{} command+x cut Delete Row command+shift+v You can copy multiple text Command+shift+u case conversions ALT + F1 find the directory where the file is located command+/Comment line or multiline//ctrl+shift+/comment/*...*/command+alt+ left and right arrows return to last edited position Shift+f6 rename command+shift+ up/down arrow Move the code up or down command+[or] you can jump to the beginning of the curly brace command+f12 can display the structure of the current file command+alt+b can navigate to an abstract method implementation code command+shift+ the keypad's * column edit ALT + F8 debug Check value F8 equivalent to eclipse F6 skip to the next Shift+f8 equivalent to eclipse F8 jump to the next breakpoint, also equivalent to eclipse F7 jump function F7 equivalent to eclipse F5 is into the code ALT + Shift+f7 This is forced into code ctrl+shift+f9 debug Run Java class CTRL+SHIFT+F10 normal run Java class Command+f2 stop running

IntelliJ idea--List of common shortcut keys

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.