Android Studio 快捷键中英文对译

来源:互联网 发布:动态壁纸软件情侣 编辑:程序博客网 时间:2024/05/20 06:30

Editing /编辑

 

Ctrl + Space

Basic code completion (the name of any class,

基本代码补全提示

 

method or variable)

 

Ctrl + Shift + Space

Smart code completion (filters the list of methods

智能代码补全加模板提示

 

and variables by expected type)

 

Ctrl + Shift + Enter

Complete statement

 

Ctrl + P

Parameter info (within method call arguments)

查看参数信息

Ctrl + Q

Quick documentation lookup

快速查看文档

Shift + F1

External Doc

 

Ctrl + mouse over code

Brief Info

查看摘要信息

Ctrl + F1

Show descriptions of error or warning at caret

 

Alt + Insert

Generate code... (Getters, Setters, Constructors,

快速生成代码 

 

hashCode/equals, toString)

 

Ctrl + O

Override methods

重写/覆盖 父类的方法

Ctrl + I

Implement methods

实现接口中的方法

Ctrl + Alt + T

Surround with… (if..else, try..catch, for,

 快速添加代码块

 

synchronized, etc.)

 

Ctrl + /

Comment/uncomment with line comment

添加/移除行注释

Ctrl + Shift + /

Comment/uncomment with block comment

添加/移除块注释

Ctrl + W

Select successively increasing code blocks

选择联续的代码块,比如一个方法内的所有代码

Ctrl + Shift + W

Decrease current selection to previous state

 

Alt + Q

Context info

 

Alt + Enter

Show intention actions and quick-fixes

快速提示/代码修复

Ctrl + Alt + L

Reformat code

格式化代码

Ctrl + Alt + O

Optimize imports

组织自动导入

Ctrl + Alt + I

Auto-indent line(s)

自动缩进

Tab / Shift + Tab

Indent/unindent selected lines

手动缩进/恢复缩进

Ctrl + X or Shift + Delete

Cut current line or selected block to clipboard

剪切当前行

Ctrl + C or Ctrl + Insert

Copy current line or selected block to clipboard

复制当前行到粘帖板

Ctrl + V or Shift + Insert

Paste from clipboard

从剪切板复制内容

Ctrl + Shift + V

Paste from recent buffers...

从缓冲区复制内容

Ctrl + D

Duplicate current line or selected block

复制当前行或选择的块

Ctrl + Y

Delete line at caret

删除一行

Ctrl + Shift + J

Smart line join

智能合并行

Ctrl + Enter

Smart line split

智能拆分行(格式化)

Shift + Enter

Start new line

换行

Ctrl + Shift + U

Toggle case for word at caret or selected block

快速拼写较正

Ctrl + Shift + ] / [

Select till code block end/start

选择当到到最近的大括号中的代码块

Ctrl + Delete

Delete to word end

从当前删除到单词结束位置

Ctrl + Backspace

Delete to word start

从当前删除到单词的开始位置

Ctrl + NumPad+/-

Expand/collapse code block

展开/折叠代码块

Ctrl + Shift + NumPad+

Expand all

展开所有代码

Ctrl + Shift + NumPad-

Collapse all

折叠所有代码

Ctrl + F4

Close active editor tab

关闭当前编辑的标签页

 

Search/Replace 寻找/替换

 

Double Shift

Search everywhere

查找所有内容

Ctrl + F

Find

查找

F3

Find next

查找下一个

Shift + F3

Find previous

查找上一个

Ctrl + R

Replace

替换

Ctrl + Shift + F

Find in path

路径查找

Ctrl + Shift + R

Replace in path

路径替换

Ctrl + Shift + S

Search structurally (Ultimate Edition only)

在(项目结构)配置中查找

Ctrl + Shift + M

Replace structurally (Ultimate Edition only)

 在配置中查找替换

 

 

 

 

 

Usage Search 查看引用

 

Alt + F7 / Ctrl + F7

Find usages / Find usages in file

查看引用

Ctrl + Shift + F7

Highlight usages in file

在文件中高亮显示引用的内容

Ctrl + Alt + F7

Show usages

查看引用位置

 

Compile and Run // 编译运行

 

Ctrl + F9

Make project (compile modifed and dependent)

构建/修正依赖

Ctrl + Shift + F9

Compile selected file, package or module

编译所选的文件、包或模块

Alt + Shift + F10

Select configuration and run

选择并运行

Alt + Shift + F9

Select configuration and debug

选择并调试

Shift + F10

Run

运行

Shift + F9

Debug

调试

Ctrl + Shift + F10

Run context configuration from editor

 

 

Debugging/调试

 

F8

Step over

跳到下一步

F7

Step into

进入到方法内部

Shift + F7

Smart step into

智能单步跟进

Shift + F8

Step out

跳过当前断点

Alt + F9

Run to cursor

运行到光标处

Alt + F8

Evaluate expression

选中查看值

F9

Resume program

重启程序

Ctrl + F8

Toggle breakpoint

断点开关

Ctrl + Shift + F8

View breakpoints

查看断点

 

Navigation导航

 

Ctrl + N

Go to class

跳转到指定类

Ctrl + Shift + N

Go to file

跳转到指定文件

Ctrl + Alt + Shift + N

Go to symbol

 

Alt + Right/Left

Go to next/previous editor tab

切换到下一个/上一个编辑标签窗口

F12

Go back to previous tool window

切换到最近使用的工具窗口

Esc

Go to editor (from tool window)

从工具窗口跳转到编辑窗口

Shift + Esc

Hide active or last active window

隐藏最后活动的窗口

Ctrl + Shift + F4

Close active run/messages/find/... tab

关闭活动的运行\消息\查找等窗口

Ctrl + G

Go to line

跳转到指定行

Ctrl + E

Recent files popup

 查看最近操作的文件

Ctrl + Alt + Left/Right

Navigate back/forward

 向左/右切换标签页

Ctrl + Shift + Backspace

Navigate to last edit location

 返回到最近编辑的位置

Alt + F1

Select current file or symbol in any view

 以不同的视图查看选中的文件(可打开所在文件夹)

Ctrl + B or Ctrl + Click

Go to declaration

跳转到声明处

Ctrl + Alt + B

Go to implementation(s)

跳转到实现处

Ctrl + Shift + I

Open quick definition lookup

声明信息快速查询

Ctrl + Shift + B

Go to type declaration

跳转到声明的属性类

Ctrl + U

Go to super-method/super-class

跳转到父类或方法

Alt + Up/Down

Go to previous/next method

查看上一个\下一个方法

Ctrl + ] / [

Move to code block end/start

移动到代码块的结束/开始

Ctrl + F12

File structure popup

查看文件结构

Ctrl + H

Type hierarchy

查看文件继承关系

Ctrl + Shift + H

Method hierarchy

查看方法继承关系

Ctrl + Alt + H

Call hierarchy

查看调用关系

F2 / Shift + F2

Next/previous highlighted error

 对上一个\下一个 (未引用代码)错误高亮显示 

F4 / Ctrl + Enter

Edit source / View source

查看源码

Alt + Home

Show navigation bar

显示导航条

F11

Toggle bookmark

书签开关

Ctrl + F11

Toggle bookmark with mnemonic

带编号的书签开关

Ctrl + #[0-9]

Go to numbered bookmark

跳转到指定书签

Shift + F11

 Show bookmarks

 

查看所有书签

 

 

 

Refactoring// 重构

 

F5

Copy

复制

F6

Move

移动

Alt + Delete

Safe Delete

安全删除

Shift + F6

Rename

重命名

Ctrl + F6

Change Signature

更改签名

Ctrl + Alt + N

Inline

 

Ctrl + Alt + M

Extract Method

抽取方法

Ctrl + Alt + V

Extract Variable

抽取变量

Ctrl + Alt + F

Extract Field

抽取字段

Ctrl + Alt + C

Extract Constant

抽取常量

Ctrl + Alt + P

Extract Parameter

抽取参数

 

VCS/Local History//版本控制

 

Ctrl + K

Commit project to VCS

提交项目到版本控制器

Ctrl + T

Update project from VCS

更新项目

Alt + Shift + C

View recent changes

查看修改记录

Alt + BackQuote (`)

‘VCS’ quick popup

快速选择版本控制器

 

Live Templates // 活动模板

 

Ctrl + Alt + J

Surround with Live Template

 

Ctrl + J

Insert Live Template

添加模板

iter

Iteration according to Java SDK 1.5 style

 

inst

Check object type with instanceof and downcast it

 

itco

Iterate elements of java.util.Collection

 

itit

Iterate elements of java.util.Iterator

 

itli

Iterate elements of java.util.List

 

psf

public static final

 

thr

throw new

 

 

General // 常用 

 

Alt + #[0-9]

Open corresponding tool window

打开常用工具

Ctrl + S

Save all

保存代码

Ctrl + Alt + Y

Synchronize

同步代码

Ctrl + Shift + F12

Toggle maximizing editor

最大化\最小化 编辑区

Alt + Shift + F

Add to Favorites

添加到搜藏夹

Alt + Shift + I

Inspect current file with current profile

 在当前项目中检查当前文件

Ctrl + BackQuote (`)

Quick switch current scheme

 

Ctrl + Alt + S

Open Settings dialog

打开设置对话框

Ctrl + Alt + Shift + S

Open Project Structure dialog

打开项目结构对话框

Ctrl + Shift + A

Find Action

查找功能

Ctrl + Tab

Switch between tabs and tool window

切换编辑窗口标签页

 

0 0
原创粉丝点击