IntellitJ Idea很好用快捷键总结

中文说明 未例快捷键 Idea描述
代码行向上移动 WINDOWS+向上 CODE Move Statement Up
代码行向下移动 WINDOWS+向下 CODE Move Statement Down

返回上一个位置 Back
返回下一个位置 Forward

显示建议/快速修复 Show Intention Actions Ctrl+1

大小写转换 CTRL+SHIT+U Editor Actions Toggle Case
删除代码行 CTRL+D Editor Actions Delete Line

查找引用 CTRL+G Edit Find Usages
格式华代码 CTRL+SHIT+F CODE Reformat Code
代码提示 ALT+B Code Completion Basic
代码智能提示, SmartType Command+Shift+space
调用方法写变量时会提示变量定义类型 Parameter Info Ctrl+Shift+space

进入方法、变量定义位置 Declaration Commond+G
进入方法、变量定义类 Type Declaration Commond+T

往下复制当前行或选择的代码 Duplicate Entire Lines
格式化代码 Reformat Code

代码块收缩在一起 Collapse ART + -
代码块展开 Expand ALT + -

定位到最后编辑的位置 CTRL+Q Navigate Last Edit Location

关闭当前正在编辑的窗口 CTRL+W Close Active Tab
显示最近编辑的文件 CTRL+E VIEW Recent Files

代码转成方法:windows+shit+M Refactor Extract method
代码转成变量 window+shit+L Refactor Extract Variable
值转成常量 Constant Ctrl+Shift+C
重新名 windows+shift+R Refactor rename

int index = 1; 转成: int index = INT;

值转成常量 CTRL+WINDOWS+C Refactor Extract Constant

找到下一个出错的地方 Next highlighted Error ctrl+e
修复注释 Fix doc comment

查看方法、变量代码实现,可按回车进入代码位置 Qucik Definition Ctrl+Y
查看类的结构 File Structure Ctrl+O
查代与替换 Replace In Path

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值