最有用的idea快捷键整理(自定义)

idea快捷键总结


desc 指用途

location 指在系统偏好设置中 keys map 下的 导航位置,可以重设成自己喜欢的快捷键


1.Ctrl down箭头
desc: 下一个tab
location: select Next tab in main menu | window | editor tabs

2.Ctrl up箭头
desc: 上一个tab
location: 同上

3.Alt Shift S
desc: 自动生成getSet constructor override
location: Generate**… in Main menu | code create component in other**

4.Alt Shift Z
desc: surround with if while
location: Main menu | code

5.Ctrl Shift 空格
desc: Complete Current Statement 自动换行加;
location: Editor Actions

6.Ctrl Shift F
desc: Reformat Code
location: Main menu | Code

7.Alt Shift R
desc: Rename
location: Main menu | Refactor

8.Ctrl D
desc: Delete Line
location: Editor Actions

9.Alt /
desc: Basic 代码提示
location: Main menu | Code | Completion

10.Ctrl Shift N
desc: 创建class
location: other new**…**

11.Ctrl Shift /
desc: 块注释 Comment with block comment
location: Main menu | code

12.Ctrl Shift O
desc: Optimize Import
location: Main menu | code

13.Ctrl Alt >右箭头
desc: Next Project Windows
location: Main menu | widows

14.Ctrl Alt <左箭头
desc: Previous Project
location: 同上

15.Ctrl W
desc: Close 关闭
location: Main menu | Windows | Editor Tabs

16.Ctrl Shift W
desc: Close All
location:

17.Ctrl <箭头
desc: 到前一个单词开头 Move Caret to Previous Word
location: Editor Actions

18.Ctrl >箭头
desc: 到单词末尾
location: 同上

19.Ctrl Shift up
desc: 到上一个方法名开头 Previous Method
location: Main menu | Navigate

20.Ctrl Shift down
desc: 到next一个方法名开头
location: 同上

(template,可自定义)


21.iter(fe)+Tab
desc: foreach
location: 自定义template

22. ifn+Tab
desc: 可以输入if (xxx == null)
location: 自定义template(默认有)

23. F2
desc: quick documention 查看文档
location:

24.Ctrl Alt M
desc: 测试TESTNAVIGATE
location: Already assigned to Test in Main menu | Navigate

25. Ctrl E
desc: 列出最近编辑的文档 recently
location: rencent files in Main Menu | View

26. Ctrl M
desc: scroll to Center
location: in Editor Actions

27. Ctrl Shift M
desc: Hide all Tools Window
location: Main menu | window | Active Tool Window

28. Ctrl Shift J(Z)
desc: join two lines into one remove unecessary 将两行合成一行
location: Editor action

29. java HTML xml缩进 indent
desc: keep indents on empty lines
location:

30. 右键选择格式化文件夹,格式化化全部文件

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

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

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值