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 + “-” / “+”

添加循環(huán)或遍歷:commond + option + ”T”

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

移動代碼:option + shift + “up” / “down”

查看抽象類或方法的子類實現(xiàn):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

全局搜索類/方法/參數(shù):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:

創(chuàng)建stateless的Widget:stless

創(chuàng)建statefull的Widget:stfull

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

flutter 快捷鍵:http://www.itdecent.cn/p/616019141356

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

友情鏈接更多精彩內容