AndroidStudio快捷键Editing

来源:互联网 发布:升调降调软件 编辑:程序博客网 时间:2024/06/04 18:26

写在前面,参考依据:http://www.jetbrains.com/idea/documentation/index.jsp


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)
在很多时候都能够给出Smart提示
同上,不考虑


Ctrl + Shift + Enter

Complete statement
完成状态,尚未发现有什么卵用


Ctrl + P

Parameter info (within method call arguments)
在方法中查看参数信息
这里写图片描述


Ctrl + Q

Quick documentation lookup
快速查看文档
这里写图片描述


Shift + F1

External Doc
在浏览器中打开API文档


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)
生成常用代码(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.)
使用(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

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/Collapse all
展开全部
这里写图片描述


Ctrl + F4

Close active editor tab
关闭当前编辑窗口
这里写图片描述

0 0
原创粉丝点击