mac系统下idea快捷键

1、向上移动行(Move statement Up)  /  向下移动行(Move Statement Down)

option + ↑

option + ↓ 

2、向下复制一行(Duplicate Lines)

option + command + ↓

3、delete

fn + 删除

4、删除一行(Delete Line)

command + d

5、进入方法 (Declaration)

ctrl + 鼠标左键

6、返回到光标之前的位置 

option + command + ←

7、移动至某行

command + L

8、格式化代码

shift + command + f

9、抽取方法(Extract Method)

option + command + m

10、关闭当前打开的代码栏(Close)

command + w

11、查找任何东西(Search Everywhere)

双击shift

12、从当前光标选中到本行开头(Move Caret Line Start) / 从当前光标选中到本行末尾(Move Caret Line End)

command + ←

command + →

13、向下开始新的一行(Start New Line)

shift + enter

14、单行注释

command + /

15、多行注释

shift + control + /

16、导包 / 生成返回值(Show Context Actions)

command + 1

 

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

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值