Android studio快捷键

0、 快捷键修改记录

ctrl+Y Redo 恢复

ctrl+H Find in Files 全局搜索

ctrl+Alt+↑ MoveLineDown 本行代码上移一行

ctrl+Alt+↓ MoveLineUp 本行代码下移一行

Alt+E GenerateFindViewById 自动生成findviewbyid

Alt+, SecondBasicCompletion 代码提示\

1、快捷键修改

一般用Android studio的人都用过Eclipse,好多用户在改用studio的时候快捷键会不怎么熟悉,接下来一起来记录一下吧

1 2 3

选中需要修改的快捷键右击(如上图)

就可以弹出选项框,选项框有3+个选项

Add Keyboard Shortcut:设置键盘快捷键

Add Mouse Shortcut:设置鼠标快捷键,比如鼠标左键,鼠标右键

Add Abbreviation:这个是添加一个简写

有些有快捷键的功能会有第四个选项

这个选项就是移除快捷键了


2、常用的快捷键名称

注意(有些快捷键的原本快捷键已被修改,找不到的就用名称搜索吧!)
注意(有些快捷键的原本快捷键已被修改,找不到的就用名称搜索吧!)
注意(有些快捷键的原本快捷键已被修改,找不到的就用名称搜索吧!)

1.Generate (生成构造方法,get/set等)

2. Show Context Actions (显示建议/进行修复)

3.File Structure(查看文件结构)

4. Type Hierarchy (查看类的继承结构)

5. Rename (重命名)

6. Reformat Code (代码格式化)

7. Find in Files (全局搜索)

8. Quick Docmentation (快捷查看解释)

9. Go to Line:Column (定位到某一行)

10. Duplicate Entire Lines (复制当前行到下一行)

11. Variable (生成接收的变量)

12. ShowProjectStructureSettings (项目结构管理)

13. Second Basic Completion (代码提示)

14. Comment with Line Comment (单行注释)

15. Comment with Block Comment (多行注释)

16. Delete Line (删除当前行)

17. Switcher (切换代码窗口)

18. Hide All Tool Windows (窗口最大化)

19. Undo Redo (撤销/恢复)

20. Find Usages (查看某个类或方法在何处被调用)

21. Introduce Field (将局部变量转为全局变量)

22. Surround With (if、try...catch、while等等)

3、总结

适当修改快捷键能够提高工作效率,同时自己开发也能顺心些,切记再改的时候要注意下和其他快捷键以及其他软件冲突的问题,有的时候自己不知道还以为搞错了.

目前差不多就这些,之后有时间继续完善!

相关推荐
Mr_万能胶5 小时前
到底原研药,来瞧瞧 Google 官方《Android API 设计指南》
android·架构·android studio
BINGCHN5 小时前
NSSCTF每日一练 SWPUCTF2021 include--web
android·前端·android studio
Ryan ZHENG1 天前
[Android][踩坑]Android Studio导入core-libart.jar
android·android studio·jar
BoomHe1 天前
车载应用配置系统签名
android·android studio
路人甲ing..1 天前
用 Android Studio 自带的模拟 Android Emulator 调试
android·java·ide·ubuntu·kotlin·android studio
路人甲ing..1 天前
Android Studio 模拟器报错 The emulator process for AVD xxxxx has terminated.
android·java·ide·kotlin·android studio
bqliang2 天前
从喝水到学会 Android ASM 插桩
android·kotlin·android studio
圆肖2 天前
File Inclusion
android·ide·android studio
花花鱼3 天前
android studio引用三方库的方法,比如SmartRefreshLayout
android·ide·android studio
路人甲ing..4 天前
Ubuntu怎么安装tar.gz (android-studio为例)
linux·ubuntu·kotlin·android studio