Intellij idea Common shortcut keys

Source: Internet
Author: User
Tags try catch

1. Ctrl + Space

Complete automatic input of class, method, variable name

2. CTRL + N (Ctrl + Shift + N)

Jump to the specified Java file (other file)

3. Ctrl + B

Jump to Definition

4. Ctrl + Alt + T

Use if, while, try catch to surround the selected line of code

5. Ctrl + Alt + B

Jump to method implementation

6. Ctrl + W

Press a word to select the action, in the idea of this shortcut function is to select the word at the character of the cursor, and then select the source

The extended area of the code.

7. Shift + F1

Displays the specified Java docs in the browser

8. Ctrl + Q

It's handy to show Java docs in the editor window--because sometimes you just forget about the meaning of one of the parameters in your own method, and you don't want to start a browser to see the Java doc again, and the benefits of this feature are reflected

9. Ctrl +/

Comment/Counter-annotate the specified statement, or you can use Ctrl + Shift +/To annotate multiple lines of statements (that is, use the multiline comment symbol "/* ... */")

Ten. F2/shift + F2

Jump to Next/previous Error statement

Shift + F6

Provides renaming of methods, variables

Ctrl + Alt + L

Format the selected code according to the template, which is valid only for Java files
Ctrl + Alt + I

Automatically indent the selected code, which can also work when editing a JSP file.

Provides a complement to the Ctrl + Alt + L feature.

Ctrl + Alt + O

Optimize import to automatically remove useless import statements

. Ctrl +/[

Jump to end of code block/start

16.ctrl+e

Displays a list of recently edited files

17.shift+click

Close File

18.ctrl+shift+backspace

Jump to the last edited place

19.ctrl+f12

Displays the structure of the current file

20.ctrl+f7

Query the current element for a reference in the current file, and then press F3 to select

21.ctrl+shift+n

Quickly open files

22.alt+q

See the declaration of the current method

23.ctrl+p

Display parameter information

25.alt+insert

Generate constructor/getter/setter, etc.

26.ctrl+alt+v

Introduce variables. For example, to assign a variable to a SQL in parentheses

27.alt+up and Alt+down

Can be moved quickly between methods

The following is not very useful

28.alt+enter

Get some Intention Action, for example, change "= =" to "Equals ()"

29.ctrl+shift+alt+n

You can quickly open symbols

30.ctrl+shift+space

Smart tips can be given in many cases

31.alt+f3

Can quickly find

32.ctrl+o

You can choose a method of the parent class to override

33.ctrl+alt+space

is the class name auto-complete

Ctrl+j.

Live templates!

35.ctrl+shift+f7

You can highlight the current element's use in the current file

30.ctrl+alt+up/ctrl+alt+down

Quick jump to search results

31.ctrl+shift+j

Can consolidate two lines

32.alt+f8

Is the value of the calculated variable

33.ctrl+d

Copy the previous row or copy the selected

34.ctrl+alt+l

Formatting code

35.alt+shift+insert

Column editing

After loading the upperlowercapitalize

ALT+P//To uppercase

Alt+l//To lowercase

Alt+c//First Letter Capital

You can change the set to your custom keying combination in Option--keymaps.

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