美文网首页Flutter
Flutter常用快捷键-AndroidStudio

Flutter常用快捷键-AndroidStudio

作者: Jason_hzb | 来源:发表于2022-11-10 15:19 被阅读0次
1、stless  快速创建StatelessWidget的子类
2、stful  快速创建StatefulWidget的子类
3、command + option + B,查看抽象类或方法的子类实现
4、command + option + T,有时需要在一些代码外面加上if、for、while等代码,快速调出环绕代码
5、command + option + W,抽取Widget
6、command + option + M,抽取代码
7、command + option + L,格式化代码
8、command + shift + N,新建Dart文件【Scratch File 快捷键command + shift + N删除】
9、command + shift + Enter,if后面自动加(){}
10、commond + d 快速复制一行
11、option + shift + 上下键,移动代码
12、option + enter,将widget自动包裹一层widget或删除这层widget
StatelessWidget转StatefulWidget
快速导包

相关文章

网友评论

    本文标题:Flutter常用快捷键-AndroidStudio

    本文链接:https://www.haomeiwen.com/subject/ybnztdtx.html