0
点赞
收藏
分享

微信扫一扫

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

舍予兄 2021-10-04 阅读 62

很多功能:option + enter

移动代码: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

举报

相关推荐

0 条评论