Flutter在androidStudio中的快捷键使用

2021-02-01  本文已影响0人  男人宫

1.创建StatelessWidget

stless

2.创建StatefulWidget

stful

3.将选中代码提取到某个方法中

command + option + M

4.组件外层包裹

option + enter

5.当前文件搜索

command + F

6.全局文件搜索

command + shift + F

7.文件名字替换

command + shift + R

8.抽取代码为单独的Widget

//鼠标选中需要转换的类名
command + option + W

9.查看抽象类或方法的子类实现

command + option + B

10.格式化代码

command + option + L 

11.快速生成getter和setter方法

command + n

12.快速把StatelessWidget转StatefulWidget

在StatelessWidget双击选中
Alt + enter
上一篇 下一篇

猜你喜欢

热点阅读