最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

【整理】Android Studio中Tip of the Day和keymap介绍的快捷键

Android Studio crifan 6202浏览 0评论

【背景】

折腾:

【记录】win10中搭建安卓开发环境Android Studio

期间,先去了解了解Android Studio中的快捷键。

 

【折腾过程】

1.先去看看:

Default Keymap Reference

android studio Default Keymap Reference

打开了:

https://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard.pdf

是个PDF文件,截图如下:

intellij IDEA default keymap page up

intellij IDEA default keymap page down

2.再去看看提示:

Tip of the Day

welcome to android studio 1.3

3.Ctrl+N,输入类名,即可快速查看类的定义:

To open any class in the editor quickly, press Ctrl+N (Navigate | Class) and start typing the name of the class. Choose the class from a drop-down list that appears.

You can open any file in your project in a similar way by using Ctrl+Shift+N (Navigate | File)

Ctrl N Navigate Class

4.代码补全:

ctrl space code completion

5.查找类,函数的调用是:Alt+F7

alt f7 edit find find usages

6.查看快速文档Ctrl+Q:

ctrl q view quick documentation

7.Ctrl+B 或  Ctrl+鼠标点击 调转到变量的定义

ctrl b navigate declaration

8.快速调转,导航Ctrl+F12

ctrl f12 navigate file structure

9.Shift+F6,重构,重命名

shift F6 refactor rename

10.

Ctrl+O 重写类

Ctrl+I 实现(虚)类

ctrl I and ctrl o override methods

11.智能类型代码自动完成:

ctrl shift space smartype code completion

12.代码完成时,可以使用Tab(而不是Enter)

use enter not tab to completion

避免覆盖光标后面的内容

13.Shift+鼠标单击 关闭tab

shift single mouse click

14.Alt+Insert 智能插入getter和setter

alt insert code generate getter and setter

15.Alt+F1 快速选中当前正在编辑的元素(类,文件,方法,域)

alt f1 project structure

16.在文件列表出,直接输入,可以快速查找和定位文件:

file list view input to locate

17.其他:

Esc 焦点回到当前编辑编辑器

Shift+Esc 焦点回到当前编辑编辑器,并且隐藏当前工具栏

F12 移动焦点到上次的窗口

esc shift esc f12 related focus

18.Ctrl+Alt+T 用什么包围,选中代码,自动用if else do while 之类的代码包围 自动生成

ctrl alt t code surround with

 

【总结】

抽空好好记记这些快捷键,等熟练用到后,真心可以大幅度提高工作效率。

转载请注明:在路上 » 【整理】Android Studio中Tip of the Day和keymap介绍的快捷键

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
84 queries in 0.177 seconds, using 22.11MB memory