IntelliJIDEA默认快捷键大全

编程

Remember these Shortcuts

常用

功能

快捷键

备注

Smart code completion

Ctrl + Shift + Space

-

Search everywhere

Double Shift

-

Show intention actions and quick-fixes

Alt + Enter

-

Generate code

Alt + Ins

-

Parameter info

Ctrl + P

-

Extend selection

Ctrl + W

-

Shrink selection

Ctrl + Shift + W

-

Recent files popup

Ctrl + E

-

Rename

Shift + F6

-

_

____________________________________________________

____________________________

_

General

常用

功能

快捷键

备注

Open corresponding tool window

Alt + #[0-9]

-

-

Save all

Ctrl + S

-

-

Synchronize

Ctrl + Alt + Y

-

Toggle maximizing editor

Ctrl + Shift + F12

-

-

Inspect current file with current profile

Alt + Shift + I

-

-

Quick switch current scheme

Ctrl + BackQuote (`)

-

Open Settings dialog

Ctrl + Alt + S

-

Open Project Structure dialog

Ctrl + Alt + Shift + S

-

Find Action

Ctrl + Shift + A

-

_

____________________________________________________

____________________________

_

Debugging

常用

功能

快捷键

备注

Step over/into

F8 / F7

-

-

Smart step into/Step out

Shift + F7 / Shift + F8

-

-

Run to cursor

Alt + F9

-

Evaluate expression

Alt + F8

-

-

Resume program

F9

-

Toggle breakpoint

Ctrl + F8

-

-

View breakpoints

Ctrl + Shift + F8

-

_

____________________________________________________

____________________________

_

Search / Replace

常用

功能

快捷键

备注

Search everywhere

Double Shift

-

Find

Ctrl + F

-

-

Find next/previous

F3 / Shift + F3

-

-

Replace

Ctrl + R

-

-

Find in path

Ctrl + Shift + F

-

-

Replace in path

Ctrl + Shift + R

-

Select next occurrence

Alt + J

-

-

Select all occurrences

Ctrl + Alt + Shift + J

-

-

Unselect occurrence

Alt + Shift + J

-

_

____________________________________________________

____________________________

_

Editing

常用

功能

快捷键

备注

Basic code completion

Ctrl + Space

-

Smart code completion

Ctrl + Shift + Space

-

Complete statement

Ctrl + Shift + Enter

-

Parameter info (within method call arguments)

Ctrl + P

-

-

Quick documentation lookup

Ctrl + Q

-

-

External Doc

Shift + F1

-

-

Brief Info

Ctrl + mouse

-

-

Show descriptions of error at caret

Ctrl + F1

-

Generate code...

Alt + Insert

-

Override methods

Ctrl + O

-

Implement methods

Ctrl + I

-

Surround with… 

Ctrl + Alt + T

-

Comment/uncomment with line comment

Ctrl + /

-

Comment/uncomment with block comment

Ctrl + Shift + /

-

Extend selection

Ctrl + W

-

Shrink selection

Ctrl + Shift + W

-

Context info

Alt + Q

-

Show intention actions and quick-fixes

Alt + Enter

-

Reformat code

Ctrl + Alt + L

-

Optimize imports

Ctrl + Alt + O

-

Auto-indent line(s)

Ctrl + Alt + I

-

-

Indent/unindent selected lines

Tab / Shift + Tab

-

-

Cut current line to clipboard

Ctrl + X , Shift + Delete

-

-

Copy current line to clipboard

Ctrl + C , Ctrl + Insert

-

-

Paste from clipboard

Ctrl + V , Shift + Insert

-

-

Paste from recent buffers...

Ctrl + Shift + V

-

Duplicate current line

Ctrl + D

-

-

Delete line at caret

Ctrl + Y

-

-

Smart line join

Ctrl + Shift + J

-

Smart line split

Ctrl + Enter

-

Start new line

Shift + Enter

-

-

Toggle case for word at caret or selected block

Ctrl + Shift + U

-

-

Select till code block end /start

Ctrl + Shift + ] /[

-

-

Delete to word end

Ctrl + Delete

-

-

Delete to word start

Ctrl + Backspace

-

-

Expand/collapse code block

Ctrl + NumPad+ / -

-

-

Expand all

Ctrl +  Shift + NumPad+

-

-

Collapse all

Ctrl + Shift + NumPad-

-

Close active editor tab

Ctrl + F4

-

_

____________________________________________________

____________________________

_

Refactoring

常用

功能

快捷键

备注

Copy

F5

-

Move

F6

-

-

Safe Delete

Alt + Delete

-

Rename

Shift + F6

-

-

Refactor this

Ctrl + Alt + Shift + T

-

Change Signature

Ctrl + F6

-

-

Inline

Ctrl + Alt + N

-

Extract Method

Ctrl + Alt + M

-

Extract Variable

Ctrl + Alt + V

-

-

Extract Field

Ctrl + Alt + F

-

-

Extract Constant

Ctrl + Alt + C

-

-

Extract Parameter

Ctrl + Alt + P

-

_

____________________________________________________

____________________________

_

Navigation

常用

功能

快捷键

备注

Go to class

Ctrl + N

-

Go to file

Ctrl + Shift + N

-

Go to symbol

Ctrl + Alt + Shift + N

-

-

Go to next/previous editor tab

Alt + Right/Left

-

-

Go back to previous tool window

F12

-

Go to editor (from tool window)

Esc

-

-

Hide active or last active window

Shift + Esc

-

Go to line

Ctrl + G

-

Recent files popup

Ctrl + E

-

-

Navigate back/forward

Ctrl + Alt + Left/Right

-

Navigate to last edit location

Ctrl + Shift + Backspace

-

Select current file or symbol in any view

Alt + F1

-

Go to declaration

Ctrl + B ,Ctrl + Click

-

Go to implementation(s)

Ctrl + Alt + B

-

Open quick definition lookup

Ctrl + Shift + I

-

-

Go to type declaration

Ctrl + Shift + B

-

-

Go to super-method/super-class

Ctrl + U

-

-

Go to previous/next method

Alt + Up/Down

-

-

Move to code block end/start

Ctrl + ]/[

-

File structure popup

Ctrl + F12

-

-

Type hierarchy

Ctrl + H

-

-

Method hierarchy

Ctrl + Shift + H

-

-

Call hierarchy

Ctrl + Alt + H

-

-

Next/previous highlighted error

F2 / Shift + F2

-

-

Edit source/View source

F4 /Ctrl + Enter

-

Show navigation bar

Alt + Home

-

-

Toggle bookmark

F11

-

-

Toggle bookmark with mnemonic

Ctrl + F11

-

-

Go to numbered bookmark

Ctrl + #[0-9]

-

-

Show bookmarks

Shift + F11

-

_

____________________________________________________

____________________________

_

Compile and Run

常用

功能

快捷键

备注

Make project

Ctrl + F9

-

-

Compile selected file, package or module

Ctrl + Shift + F9

-

-

Select configuration and run/debug

Alt + Shift + F10/F9

-

Run/Debug

Shift + F10 / F9

-

-

Run context configuration from editor

Ctrl + Shift + F10

-

_

____________________________________________________

____________________________

_

Usage Search

常用

功能

快捷键

备注

Find usages/Find usages in file Alt + F7 /

Ctrl + F7

-

Highlight usages in file

Ctrl + Shift + F7

-

Show usages

Ctrl + Alt + F7

-

_

____________________________________________________

____________________________

_

VCS / Local History

常用

功能

快捷键

备注

Commit project to VCS

Ctrl + K

-

Update project from VCS

Ctrl + T

-

Push commits

Ctrl + Shift + K

-

‘VCS’ quick popup

Alt + BackQuote (`)

-

_

____________________________________________________

____________________________

_

Live Templates

常用

功能

快捷键

备注

-

Surround with Live Template

Ctrl + Alt + J

-

-

Insert Live Template

Ctrl + J

-

_

____________________________________________________

____________________________

_

参考资料

IntelliJ IDEA DEFAULT KEYMAP

以上是 IntelliJIDEA默认快捷键大全 的全部内容, 来源链接: utcz.com/z/518301.html

回到顶部