Idea快捷键大全

在官方文档说明的快捷键基础上自己把不常用的做了删减:

注:都是些简单的英文

分类如下:

 

     官方强烈推荐的:

Search everywhere

Double Shift

Show intention actions and quick-fxes

Alt + Enter

Generate code, new.....

Alt + Ins

Parameter info

Ctrl + P

Recent fles popup

Ctrl + E

Rename

Shift + F6

Find Action 

Ctrl + Shift + A

 

     查找/替换

Find

Ctrl + F

Find next/previous

F3 / Shift + F3

Replace

Ctrl + R

Replace in path

Ctrl + Shift + R

Select next occurrence 

Alt + J

Select all occurrences

Ctrl + Alt + Shift + J

     编辑

Complete statement 自动结束代码,行末自动添加分号 

Ctrl + Shift + Enter

Parameter info (within method call arguments)

Ctrl + P

Quick documentation lookup

Ctrl + Q

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(show current class or method declaration when it is not visible)

Alt + Q

Show intention actions and quick-fxes 

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

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

Expand/collapse code block

Ctrl + NumPad+ / -

Collapse all

Ctrl + Shift + NumPad-

Expand all

Ctrl +  Shift + NumPad+

Close active editor tab

Ctrl + F4

 

 

 

     重构

Create a copy of the selected class ,file(s),or directory(es)

F5

Move the selected class ,method,package,static member  to another package or class

and correct all references 

F6

Rename

Shift + F6

Inline the 

Ctrl + Alt + N

Turn the selected code fragment into a method 提取代码片段

Ctrl + Alt + M

将表达式提取为变量

Ctrl + Alt + V

Extract Field

Ctrl + Alt + F

Extract Constant

Ctrl + Alt + C

Extract Parameter 将表达式提取为方法的参数

Ctrl + Alt + P

 

 

 

 

 

 

  

     

      导航

Go to class

Ctrl + N

Go to fle

Ctrl + Shift + N

Go to next/previous editor tab

Alt + Right/Left

Go to line

Ctrl + G

Recent fles popup

Ctrl + E

Navigate back/forward   (工具栏上的左右箭头)

Ctrl + Alt + Left/Right

Navigate to last edit locatio退回到上次修改的地方

Ctrl + Shift +Backspace

Select current fle or symbol in any view

Alt + F1

Go to declaration 进入光标所在的方法/变量的接口或是定义处,等效于 Ctrl + 左键单击

Ctrl + B , Ctrl + Click

Go to implementation(s) (调到当前选中的类、方法的实现)

Ctrl + Alt + B(Ctrl + Alt+点击)

Open quick defnition lookup  查看定义

Ctrl + Shift + I

Go to super-method/super-class

Ctrl + U

上/下一个方法

Alt + Up/Down

Move to code block

Ctrl + ]/[

File structure popup   弹出当前文件结构层,可以在弹出的层上直接输入,进行筛选

Ctrl + F12

Type hierarchy  显示当前类的层次结构

Ctrl + H

Method hierarchy  显示方法层次结构

Ctrl + Shift + H

Next/previous highlighted 

F2

Edit source

F4

Toggle bookmark

F11

Show bookmarks

Shift + F11

Toggle bookmark with mnemonic

Ctrl + F11

Go to numbered bookmark

Ctrl + #[0-9]

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值