| 注册
请输入搜索内容

热门搜索

Java Linux MySQL PHP JavaScript Hibernate jQuery Nginx

Android Studio 快捷键使用总结

1
Git C/C++ Go ci 33488 次浏览

本文介绍了一系列在AndroidStudio中常用的快捷键,希望可以帮助各位在AndroidStudio的使用中更加得心应手、如鱼得水、随心所欲、驾轻就熟、左右逢源、无往不利。

Ctrl+G / Ctrl+Alt+Shift+G:查询变量或者函数或者类在哪里被使用或被调用,后者是前者的复杂表现,可以选择查询范围等。

Alt+H:查找功能,全局查找

F4:查看类继承关系

F2:查看文档说明(函数使用说明)

Ctrl+E:查看最近打开过的文件

Ctrl+Shift+E:查看最近编辑过的文件

double Shift:全局查找,这个查看和Alt+H稍稍有些不同,这个是全局文件查找,到文件名称层面。

Ctrl+Shift+R:快速定位到你所想打开的文件。

Alt+↑:光标所在位置那行代码往上移动

Alt+↓:光标所在位置那行代码往下移动

Ctrl+D:删除光标所在位置那行代码

Ctrl+X:剪切光标所在位置那行代码

Alt+Shift+↓/Ctrl+C:复制光标所在行代码到下一行

Ctrl+O:快捷查找当前类中的函数,变量

Ctrl+Shift+R:修改名称

Alt+Enter:导入包

Alt+←:后退,定位到上个查看或者编辑的地方

Alt+→:往前定位,比如你定位到上个点后,想回去,就可以用这个快捷键

Ctrl+/:当行注释,反注释再按一次即可

Ctrl+Shift+/:模块注释,反注释再按一次即可,注意这边的”/“不能用小键盘的

Ctrl+Shift+小键盘/:折叠代码(Ctrl+Shift+小键盘*这个不灵了,今天没空了,后面会针对这个问题做解决,并更新上来),当然笔记本没小键盘,你可以自己改快捷键

Ctrl+Alt+S:打开settings界面

Ctrl+Alt+Shift+S:打开Project Structure界面

Alt+Shift+X:运行(Run)

Alt+Shift+D:调试运行(Debug)

Ctrl+F9:编译工程

Ctrl+Shift+K:push文件到Server(git)

Debug类快捷键

F5:但不调试进入函数内部。

F6:但不调试不进入函数内部。

F7:由函数内部返回调用处。

F8:执行到下一个断点,没断点则执行完成。

Action Mac OSX Win/Linux
注释代码(//) Cmd + / Ctrl + /
注释代码(/**/) Cmd + Option + / Ctrl + Shift + /
格式化代码 Cmd + Option + L Ctrl + Alt + L
清除无效包引用 Option + Control + O Alt + Ctrl + O
查找 Cmd + F Ctrl + F
查找+替换 Cmd + R Ctrl + R
上下移动代码 Option + Shift + Up/Down Alt + Shift + Up/Down
删除行 Cmd + Delete Ctrl + Y
扩大缩小选中范围 Option + Up/Down Ctrl + W/Ctrl + Shift + W
快捷生成结构体 Cmd + Option + T Ctrl + Alt + T
快捷覆写方法 Ctrl + O Ctrl + O
快捷定位到行首/尾 Cmd + Left/Right Ctrl + Left/Right
折叠展开代码块 Cmd + Plus,Minus Ctrl + Plus/Minus
折叠展开全部代码块 Cmd + Shift + Plus,Minus Ctrl + Shift + Plus,Minus
文件方法结构 Cmd + F12 Ctrl + F12
查找调用的位置 Ctrl + Option + H Ctrl + Alt + H
大小写转换 Cmd + Shift + U Ctrl + Shift + U

来源:zmit

19个答案

0

These keyboard shortcuts make typing and using the computer faster. Thanks for sharing this compilation of keyboard shortcuts. io games the impossible quiz

0

This is really what I was looking for. Great tips to become an expert in using computers. That's great, your compilation is very complete. phoodle Thanks very much!

0

我对这篇文章感到惊讶。 它有一个很好的演示文稿,布局清晰,信息对我来说很有意义。quordle game games io

0

Excellent post. Very interesting and instructive. fnf Absolutely fantastic posting! Thanks

0

说明非常详细和完整。tunnel rush 非常感谢,uno online 我现在可以比以前更快地操作事物。

0
0

Ertisun is a handmade jewellery ireland brand inspired by Irish Nature with a passion for unique and delicate jewellery designs. Each piece is uniquely handcrafted with love. Handmade designer jewellery online in Ireland. Please visit our website ​for more details and get to know about the designer Edyta Rosinska, Thank You.

0
If You are looking for great quality cheap canvas prints ​then Oh Sign A Wall is a place where can find the perfect solution for that. Uplifting canvas picture prints or vintage iconic metal signs with tons of designs and wall stickers are waiting for you. And we continuously look for new amazing wall decor must-haves, so visit our site to order canvas prints or explore our trending Products.
0

Best Casino Sites Real Money are the most popular search online all the time, If you want to find a more trusted casino site with great offer easily, please don’t miss out on our list of best online casino sites 2025 Best Casino Sites Real Money

0

I found this is an informative and interesting post so i think so it is very useful and knowledgeable. I would like to thank you for the efforts you have made in writing this article. Buy more Instagram Followers

0

I know your expertise on this. I must say we should have an online discussion on this. Writing only comments will close the discussion straight away! And will restrict the benefits from this information. 토토사이트

0

Extraordinary things you've generally imparted to us. Simply continue written work this sort of posts.The time which was squandered in going for educational cost now it can be utilized for studies.Thanks Managed IT Support near me

0

Impressive web site, Distinguished feedback that I can tackle. I am moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards Onewheel Accessories

0

It turns out that even the hottest port has a few places where you can get off the beaten path. Here are some recommendations that will make you feel like you're in the know Onewheel Accessories

0

Thanks a lot for sharing this excellent info! I am looking forward to seeing more posts by you as soon as possible! I have judged that you do not compromise on quality. 꽁머니 홍보방

0

Impressive web site, Distinguished feedback that I can tackle. Im moving forward and may apply to my current job as a pet sitter, which is very enjoyable, but I need to additional expand. Regards. 토토

0

 

The website is looking bit flashy and it catches the visitors eyes. Design is pretty simple and a good user friendly interface. 먹튀검증

0

Android Studio incorporates Kotlin 1.2.61 version that fixes a bug that can make Android Studio hang. Kotlin 1.2.71 and later likewise incorporate this fix. Kotlin 1.2.70 does exclude this fix.

https://domyhomeworkonline.net/do-my-trigonometry-homework.php

0