Android Studio快捷鍵(自用)

2021-09-13 03:28:39 字數 901 閱讀 2269

1.ctrl + alt + f

抽取全域性變數。

2.ctrl + alt + l

**格式化,爽的一匹。

3.ctrl + shift + enter

快速補全**,好用的一匹,

4.ctrl + alt + m

把選中的**提取成方法

5.ctrl + n

查詢類,是乙個模糊查詢

6.ctrl + shift + n

快速查詢檔案,可以查詢所有檔案

7.ctrl + f

在當前檔案中查詢輸入的內容

8.ctrl + shift + f

在整個專案裡進行查詢

9.ctrl + shift + 上下指示鍵

上下移動一行

10.ctrl + d

快速複製一行

11.alt + insert

插入**,可以選擇插入某些**,如父類方法 ,get/set方法

12.alt + enter

快速修復錯誤

13.ctrl + /

新增一行注釋

14 .ctrl+空格

相當於eclipse的alt+/,出現提示。

有時會和輸入法的切換衝突,可以右鍵工作列右下角的輸入法,選擇設定->高階設定->輸入語言的熱鍵更改快捷鍵。

Android Studio 快捷鍵介紹

action mac osx win linux 注釋 cmd ctrl 注釋 cmd option ctrl alt 格式化 cmd option l ctrl alt l 清除無效包引用 option control o alt ctrl o 查詢 cmd f ctrl f 查詢 替換 cmd ...

androidstudio 常用快捷鍵

androidstudio 常用快捷鍵 1 生成get set tostring 等方法 方式一 code generate 方式二 通過快捷鍵alt insert 2 注釋 ctrl 3 注釋 ctrl alt 4 格式化 ctrl alt l 5 清除無效包引用 alt ctrl o 6 查詢 ...

Android studio 常用快捷鍵

總結一下適合自己的最常用的快捷鍵,每天記乙個,加油!開啟project structrue ctrl alt shift s ctrl 句點 自動匹配下拉列表的第乙個或者選中的那個選項,並在後面自動加上乙個.句號 ctrl d 兩個操作,如果有選中的部分就複製選中的部分,並在選中部分的後面貼上出來,...