关于idea的一些快捷键

Ctrl + Space Basic code completion (the name of any class,method or variable)

Ctrl + Shift + Space Smart code completion (filters the list of methodsand variables by expected type)

Ctrl + Shift + Enter Complete statement

Ctrl + P Parameter info (within method call arguments)

Ctrl + Q Quick documentation lookup

Shift + F1 External Doc

Ctrl + mouse over code Brief Info

Ctrl + F1 Show descriptions of error or warning at caret

Alt + Insert Generate code... (Getters, Setters, Constructors,hashCode/equals, toString)

Ctrl + O Override methods

Ctrl + I Implement methods

Ctrl + Alt + T Surround with… (if..else, try..catch, for,synchronized, etc.)

Ctrl + / Comment/uncomment with line comment

Ctrl + Shift + / Comment/uncomment with block comment

Ctrl + W Select successively increasing code blocks

Ctrl + Shift + W Decrease current selection to previous state

Alt + Q Context info

Alt + Enter Show intention actions and quick-fixes

Ctrl + Alt + L Reformat code

Ctrl + Alt + O Optimize imports

Ctrl + Alt + I Auto-indent line(s)

Tab / Shift + Tab Indent/unindent selected lines

Ctrl + X or Shift + Delete Cut current line or selected block to clipboard

Ctrl + C or Ctrl + Insert Copy current line or selected block to clipboard

Ctrl + V or Shift + Insert Paste from clipboard

Ctrl + Shift + V Paste from recent buffers...

Ctrl + D Duplicate current line or selected block

Ctrl + Y Delete line at caret

Ctrl + Shift + J Smart line join

Ctrl + Enter Smart line split

Shift + Enter Start new line

Ctrl + Shift + U Toggle case for word at caret or selected block

Ctrl + Shift + ] / [ Select till code block end/start

Ctrl + Delete Delete to word end

Ctrl + Backspace Delete to word start

Ctrl + NumPad+/- Expand/collapse code block

Ctrl + Shift + NumPad+ Expand all

Ctrl + Shift + NumPad- Collapse all

Ctrl + F4 Close active editor tabSearch/ReplaceDouble Shift Search everywhere

Ctrl + F FindF3 Find next

Shift + F3 Find previous

Ctrl + R Replace

Ctrl + Shift + F Find in path

Ctrl + Shift + R Replace in path

Ctrl + Shift + S Search structurally (Ultimate Edition only)

Ctrl + Shift + M Replace structurally (Ultimate Edition only)


E

  • 1
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值