Intellij Idea 快捷键 官方原版

 

Code analysis

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Toggle code analysis in the current fileCtrl+Shift+Alt+8Ctrl+Shift+Alt+8
Go to next code issue (error, warning or suggestion)Alt+PgDnF12
Go to previous code issue (error, warning or suggestion)Alt+PgUpShift+F12
Go to next errorShift+Alt+PgDnAlt+F12
Go to next error in solutionShift+Alt+PgDnAlt+F12
Go to previous errorShift+Alt+PgUpShift+Alt+F12
Go to previous error in solutionShift+Alt+PgUpShift+Alt+F12
Inspect thisCtrl+Shift+Alt+ACtrl+Shift+Alt+A
View type hierarchyCtrl+E,HCtrl+Alt+H
Inspection Results windowCtrl+Alt+VCtrl+Alt+V

Coding assistance

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Show action listAlt+EnterAlt+Enter
Paste multiple Ctrl+Shift+V 
Code cleanupCtrl+E,C Ctrl+Alt+F 
Silent code cleanupCtrl+E,FCtrl+Shift+Alt+F
Symbol code completionCtrl+SpaceCtrl+Space
Smart code completionCtrl+Alt+SpaceCtrl+Shift+Space
Import symbol completionShift+Alt+SpaceCtrl+Alt+Space
Complete statementCtrl+Shift+EnterCtrl+Shift+Enter
Parameter informationCtrl+Shift+SpaceCtrl+P
Quick documentationCtrl+Shift+F1Ctrl+Q
Insert live templateCtrl+E,LCtrl+J
Surround with templateCtrl+E,UCtrl+Alt+J
Create file from templateCtrl+Alt+InsertCtrl+Alt+Insert
Generate codeAlt+InsertAlt+Insert
Move code upCtrl+Shift+Alt+UpCtrl+Shift+Alt+Up
Move code downCtrl+Shift+Alt+DownCtrl+Shift+Alt+Down
Move code leftCtrl+Shift+Alt+LeftCtrl+Shift+Alt+Left
Move code rightCtrl+Shift+Alt+RightCtrl+Shift+Alt+Right
Extend selectionCtrl+Alt+RightCtrl+W
Shrink selectionCtrl+Alt+LeftCtrl+Shift+W
Duplicate a line or selectionCtrl+DCtrl+D
Comment with line commentCtrl+Alt+/Ctrl+/
Comment with block commentCtrl+Shift+/Ctrl+Shift+/

Navigation and search

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Go to typeCtrl+TCtrl+N
Go to fileCtrl+Shift+TCtrl+Shift+N
Go to file memberAlt+\Ctrl+F12
Go to symbolShift+Alt+TCtrl+Shift+Alt+N
Navigate ToAlt+`Ctrl+Shift+G
Go to type of symbolCtrl+Shift+F11Ctrl+Shift+T
Go to declarationF12Ctrl+B
Go to implementationCtrl+F12Ctrl+Shift+Alt+B
Go to base symbolsAlt+HomeCtrl+U
Go to derived symbolsAlt+EndCtrl+Alt+B
Go to usageShift+Alt+F12Ctrl+Alt+F7
Go to containing declarationCtrl+[Ctrl+[
Go to next member/tagAlt+DownAlt+Down
Go to previous member/tagAlt+UpAlt+Up
Find usagesShift+F12Alt+F7
Find usages (advanced)Ctrl+Shift+Alt+F12Shift+Alt+F7
Highlight usages in fileShift+Alt+F11Ctrl+Shift+F7
Go to previous usageCtrl+Alt+PgUpCtrl+Alt+Up
Go to next usageCtrl+Alt+PgDnCtrl+Alt+Down
View recent filesCtrl+,Ctrl+E
View recent editsCtrl+Shift+,Ctrl+Shift+Alt+Backspace
Go to previous editCtrl+Shift+BackspaceCtrl+Shift+Backspace
Go to related filesCtrl+Alt+F7Ctrl+Shift+Alt+G
View bookmarksCtrl+`Ctrl+`
Go to bookmarkCtrl+[numeric key]Ctrl+[numeric key]
Set/remove bookmarkCtrl+Shift+[numeric key]Ctrl+Shift+[numeric key]
Find Results windowCtrl+Alt+F12Ctrl+Alt+U
File structureCtrl+Alt+FCtrl+F11
To-do itemsCtrl+Alt+D
Stack tracesCtrl+E,TCtrl+Shift+E
Locate in Solution ExplorerShift+Alt+LShift+Alt+L
Analyze referencesShift+Alt+YShift+Alt+Y

Refactorings

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Refactor thisCtrl+Shift+RCtrl+Shift+R
RenameCtrl+R,R F2 or Shift+F6
MoveCtrl+R,OF6
Safe delete Ctrl+R,D or Alt+Del Alt+Del
Extract methodCtrl+R,MCtrl+Alt+M
Introduce variableCtrl+R,VCtrl+Alt+V
Introduce fieldCtrl+R,FCtrl+Alt+D
Introduce parameterCtrl+R,PCtrl+Alt+P
Inline variable/method/fieldCtrl+R,ICtrl+Alt+N
Encapsulate fieldCtrl+R,ECtrl+R,E
Change signatureCtrl+R,SCtrl+F6

Unit testing

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Run unit testsCtrl+U,RCtrl+T,R
Debug unit testsCtrl+U,DCtrl+T,D
Run all tests in solutionCtrl+U,LCtrl+T,L
Run current test sessionCtrl+U,YCtrl+T,Y
Repeat previous test runCtrl+U,YCtrl+T,Y
Append to test sessionCtrl+U,ACtrl+T,A
Create new test sessionCtrl+U,NCtrl+T,N
Unit Test ExplorerCtrl+Alt+UCtrl+Alt+T
Unit Test SessionsCtrl+Alt+TCtrl+Alt+R

Tool windows

CommandShortcut 
(Visual Studio)
Shortcut 
(IntelliJ IDEA/ReSharper 2.x)
Find Results windowCtrl+Alt+F12Ctrl+Alt+U
Inspection Results windowCtrl+Alt+VCtrl+Alt+V
Hierarchies windowCtrl+Alt+H
Stack tracesCtrl+E,TCtrl+Shift+E
File structureCtrl+Alt+FCtrl+F11
To-do itemsCtrl+Alt+D
Unit Test ExplorerCtrl+Alt+UCtrl+Alt+T
Unit Test SessionsCtrl+Alt+TCtrl+Alt+R
Close recent toolCtrl+Shift+F4Ctrl+Shift+F4
Activate recent toolCtrl+Alt+BackspaceCtrl+Alt+BackspaceIn
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值