Flutter在Android Studio中快捷键汇总(更新中)

❤️Search everywhere Double⇧  

Parameter info ⌘P

❤️Recent files popup ⌘ E  

Rename ⇧F6

Step over / into F8 / F7 

Smart step into / Step out ⇧F7 / ⇧F8 

Run to cursor ⌥F9 

Evaluate expression ⌥F8 

Resume program ⌘⌥R 

Toggle breakpoint ⌘F8

View breakpoints ⌘⇧F8

❤️Extract Method ⌘⌥M

Reformat code ⌘⌥L

Surround with... ⌘ ⌥ T

Smart line join ⌃⇧J  

❤️Expand / collapse code block ⌘ + / ⌘ -

Navigate to last edit location ⌘⇧⌨

❤️很多功能:option + enter

替换:command + R

❤️移动代码:option + shift + up/down

格式化代码:option + command + ”L”

局部格式化代码:control + option + “I”

❤️选择小部件:option + ”up”  

折叠/展开代码:command + “-” / “+”

添加循环或遍历:commond + option + ”T”

添加注释:command + option + ”/“

移动代码:option + shift + “up” / “down”

查看抽象类或方法的子类实现:command + option + ”B”

outline:AS右上角

提取/封装方法:OutLine右键小组件,选择Extract Method

删除未使用的import:control + option + O

抽取方法:command + option + M

当前文件查找:Command + F

当前文件替换:Command + R

跳到下一个高亮的变量: Command + G

跳到上一个高亮的变量: Command + Shift + G

全局搜查找:Shift + Command + F

全局替换:Shift + Command + R

全局搜索类:Command + O

全局搜索类/方法/参数:option + command + O

打开最近访问的文件列表:command + E

跳转至第几行:command + L

返回到上次编辑的位置:command + /    |     option + command + -> / <-

当前文件中方法列表快速导航:command + Fn + F12

自动导入用到的包:option + enter

快速查看代码块列表:command + J

快速生成getter/setter方法,构造方法等:command + N

行尾自动添加分号,if后面自动添加(){}:shift + command + enter

引入重写父类的方法:control + O

注释与取消注释:command + /      option + command + /

切换大小写:shift + command + U

切换文件:control + tab

删除行:command + delete

复制行:command + D

打开设置:command + ,

隐藏项目目录:shift + esc

快速切换至Safari搜索指定内容:选中内容 + command + shift + L



Snippet:

创建stateless的Widget:stless

创建statefull的Widget:stfull

flutter snippets:https://github.com/georgeherby/flutter-snippets/blob/master/README.md

flutter 快捷键:https://www.jianshu.com/p/616019141356

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
【社区内容提示】社区部分内容疑似由AI辅助生成,浏览时请结合常识与多方信息审慎甄别。
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

相关阅读更多精彩内容

友情链接更多精彩内容