Idea Common shortcut keys

Source: Internet
Author: User
Tags code tag try catch

IDEA Common shortcut keys!!!!! Write it down.

1.-----------Automatic Code--------

Fori/sout/psvm+tab can be used to generate loops, System.out, main methods, such as boilerplate boilerplate code
For example, to enter a for (User user:users) Just enter User.for+tab
For example, to enter date birthday = User.getbirthday (), just enter User.getbirthday (). Var+tab. When the code tag is entered, press TAB to generate the code.

Ctrl+alt+o Optimizing imported classes and Packages
Alt+insert generate code (such as Get,set method, constructor, etc.) or right-click (Generate)
FORI/SOUT/PSVM + Tab
Ctrl+alt+t generate a try catch or alt+enter
Ctrl+alt+t put the selected code in try{} if{} else{}
Ctrl + O override method
Ctrl + I Implementation method
Ctr+shift+u Uppercase and lowercase conversions
ALT + ENTER import package, auto fix
alt+/Code Hints
CTRL+J Automatic Code
Ctrl+shift+j, integrating two lines of behavior
CTRL + Space Code hints
Ctrl+shift+space Auto-Complete code
Ctrl+alt+l Formatting Code
Ctrl+alt+i Auto Indent
Ctrl+alt+o Optimizing imported classes and Packages
Alt+insert generate code (such as Get,set method, constructor, etc.)
Ctrl+e recently changed code
Ctrl+alt+space class name or interface name hint
Ctrl+p Method Parameter Hints
Ctrl+q, you can see the declaration of the current method

Shift+f6 refactoring-Renaming (packages, classes, methods, variables, even annotations, etc.)
Ctrl+alt+v Extracting variables


2.-----------Query shortcut keys--------
Ctrl+shift+backspace can jump to the last edited place
ctrl+alt+ left/right Pre-and post-navigation edited places
ALT+7 displays the structure of the current file in the left window
CTRL+F12 floating shows the structure of the current file
Alt+f7 find out where all the references to your function or variable or class are
Ctrl+alt+f7 find out where all the references to your function or variable or class are

Ctrl+shift+alt+n find a method or variable in a class
Double-click Shift to find files in all directories of the project
CTRL + N Find class
Ctrl+shift+n Finding files
Ctrl+g Locating rows
Ctrl+f finding text in the current window
Ctrl+shift+f finding text in a specified window
Ctrl+r replacing text in the current window
Ctrl+shift+r replacing text in a specified window
Alt+shift+c Finding the modified file
Ctrl+e recently opened files
F3 down find where the keyword appears
Shift+f3 up a keyword where it appears
Select text, press ALT+F3, highlight the same text, F3 find the same text one by one
F4 finding the source of a variable


Ctrl+shift+o Popup Display Find content
Ctrl+w selected code, continuous press will have other effects
F2 or SHIFT+F2 highlighting error or warning quick location
Ctrl+up/down cursor jumps to the first or last line

Ctrl+b quickly open the class or method at the cursor
Ctrl+alt+b Find all the subcategories
Ctrl+shift+b the class of finding variables

ctrl+shift+ up and down keys move code up and down
ctrl+alt+ Left/right back to the last viewed location
Ctrl+x Deleting rows
Ctrl+d Copying rows
ctrl+/or ctrl+shift+/Comments (//or/*...*/)

CTRL+H Display class structure diagram
Ctrl+q displaying comment documents

Alt+f1 find where the code is located
Alt+1 quickly open or hide the engineering panel

ALT + Left/right Toggle Code View
Alt+↑/↓ fast positioning between methods
ctrl+alt+ left/right Pre-and post-navigation edited places
Ctrl+shift+backspace can jump to the last edited place
Alt+6 Find Todo

3.---------------------other shortcut keys-------------------

Shift+enter another line
CTRL + Z backwards (undo)
Ctrl+shift+z forward (cancel undo)
CTRL+ALT+F12 Explorer open Folder
Alt+f1 find the directory where the files are located
Shift+alt+insert Vertical Edit mode
Ctrl+f4 Close the current window
Ctrl+alt+v, you can introduce variables. For example: New String (); Automatic import of variable definitions
ctrl+~, fast switching scheme (interface appearance, code style, shortcut key mapping menu)

4.--------------SVN shortcut key---------------

Ctrl+k Submit code to SVN

Ctrl+t Update Code

5.--------------Debugging shortcut Keys---------------
What is commonly used is F8 F7 F9 The most noteworthy is that the drop Frame lets you run the code from scratch
Alt+f8 Check values when debugging
ALT+SHIFT+F9, select Debug
ALT+SHIFT+F10, select Run
CTRL+SHIFT+F9, compiling
Ctrl+shift+f8, viewing breakpoints

F7, Step Into
SHIFT+F7, smart Step Into
ALT+SHIFT+F7, force Step Into
F8, Step Over
Shift+f8, step out
ALT+SHIFT+F8, force step Over

ALT+F9, run to Cursor
CTRL+ALT+F9, force run to Cursor
F9, recovery program
ALT+F10, navigate to Breakpoint


6.--------------Refactoring---------------
Ctrl+alt+shift+t, pop-up refactoring menu
SHIFT+F6, renaming
F6, Mobile
F5, copy
Alt+delete, Safe removal
Ctrl+alt+n, inline

Idea 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.