Android studio 常用快捷键记录


有时候总是突然忘记一些快捷键,尤其是用一下mac又用一下windows的时候,然后就总去搜索一下特此记录一下方便自己找:

功能 MAC Windows // 注释代码 command+/ Ctrl+/ /**/注释代码 command+option+/ Ctrl+Alt+/ 格式化代码 command+option+L Ctrl+Alt+L 去无效引用 control+option+O Ctrl+Alt+O 文件内查找 command+F Ctrl+F 全局查找 shift+command+F Shift+Ctrl+F 文件内替换 command+R Ctrl+R 全局替换 shift+command+R Shift+Ctrl+R 向上移动行 shift+option+⬆️ Ctrl+Alt+⬆️ 向下移动行 shift+option+⬇️ Ctrl+Alt+⬇️ 删除行 command+delete Ctrl+Y 扩大选择行 option+⬆️ Ctrl+W 缩小选择行 option+⬇️ Ctrl+Shift+W 选择的代码生成包含代码(if/for等) control+option+T Ctrl+Alt+T 快速复写类方法 control+O Ctrl+O 快速行首 command+⬅️ Ctrl+⬅️ 快速行尾 command+➡️ Ctrl+➡️ 折叠代码块 command+ ➖ Ctrl+➖ 展开代码块 command+ ➕ Ctrl+➕ 折叠文件全部代码块 command+ shift + ➖ Ctrl+Shift+➖ 展开文件全部代码块 command+ shift + ➕ Ctrl+Shift➕ 文件结构查看(方法,属性) command+F12 Alt+7 查看方法所有引用 control+option+H Ctrl+Shift+H 大小写转换 command+ shift + U Ctrl+Shift+U 生成快捷键 command+N Alt+Insert 跳转指定行 command+L Ctrl+L 生成为空判断 ifn enter ifn enter 常量补全 psd enter psd enter int常量补全 int enter int enter string常量补全 key enter key enter

暂时这么多….之后慢慢加吧

原创文章,作者:ItWorker,如若转载,请注明出处:https://blog.ytso.com/290699.html

(0)
上一篇 2022年10月7日
下一篇 2022年10月7日

相关推荐

发表回复

登录后才能评论