美文网首页
Android代码规范

Android代码规范

作者: xlsong | 来源:发表于2017-06-01 09:45 被阅读62次

AndroidStudio常用快捷键

前言:使用AS也有两年了,Tip of the day每天都有看,大部分快捷键也都知道一些,但是一直没有系统地写出来。熟练使用快捷键有助于加快开发进度,以下为常用快捷键,粗体为高频的,斜体为自定义的,Tool Windows中的多为alt+number,只要使用Find Actions(Ctrl+Shift+A),就能唤醒所有的快捷键。

Actions Keymap
Move Caret to Code Block End Ctrl+右方括号
Move Caret to Code Block End with Selection Ctrl+Shift+右方括号
Complete Current Statement Ctrl+Shift+Enter
Delete Line Ctrl+D
Delete to Word End Ctrl+Delete
Delete to Word Start Ctrl+Backspace
Move Caret to Line Start Home
Move Caret to Line Start with Selection Shift+Home
Left with Selection Shift+向左箭头
Move Caret to Next Word Ctrl+向右箭头
Move Caret to Next Word with Selection Ctrl+Shift+向右箭头
Extend Selection Ctrl+W
Shrink Selection Ctrl+Shift+W
Start New Line Shift+Enter
Start New Line Before Current Ctrl+Alt+Enter
Move Caret to Text Start Ctrl+Home
Toggle case Ctrl+Shift+U
Up with selection Shift+向上箭头

Main Menu / File Keymap
Settings Ctrl+Alt+S
Project Structure Ctrl+Alt+Shift+S

Main Menu / Edit Keymap
Undo Ctrl+Z
Redo Ctrl+Y
Copy Paths Ctrl+Shift+C
Copy Reference Ctrl+Alt+Shift+C
Paste from History Ctrl+Shift+V
Next Parameter Tab
Previous Parameter Shift+Tab
Find Ctrl+F
Find in Path Ctrl+Shift+F
Replace Ctrl+R
Replace in Path Ctrl+Shift+R
Find Next F3
Find Previous Shift+F3
Find Usages Alt+F7
Find Usages Settings Ctrl+Alt+Shift+F7
Show Usages Ctrl+Alt+F7

Main Menu / View Keymap
Quick Definition Ctrl+Shift+I
Quick Documentation Ctrl+Q
External Documentation Shift+F1
Parameter Info Ctrl+P
Expression Type Ctrl+Shift+P
Context Info Alt+Q
Jump to Source F4
Recent Files Ctrl+E
Recent Changed Files Ctrl+Shift+E

Main Menu / Navigate Keymap
Class... Ctrl+N
File... Ctrl+Shift+N
Line/Column... Ctrl+G
Back Alt+向左箭头
Forward Alt+向右箭头
Last Edit Location Ctrl+Shift+Backspace
Select In... Alt+F1
Declaration Ctrl+B
Implementations Ctrl+Alt+B
File Structure Ctrl+F12
File Path Ctrl+Alt+F12
Type Hierarchy Ctrl+H
Next Highlighted Error F2
Previous Highlighted Error Shift+F2
Next Method Alt+向下箭头
Next Change Ctrl+Alt+Shift+向下箭头

Main Menu / Code Keymap
Override Methods... Ctrl+O
Implement Methods... Ctrl+I
Generate... Alt+Insert
Surround with... Ctrl+Alt+T
Unwrap/Remove... Ctrl+Shift+Delete
Completion Basic Alt+斜杠
Completion SmartType Ctrl+Shift+空格
Folding Expand Ctrl+Plus
Folding Expand All Ctrl+Shift+Plus
Insert Live Template... Ctrl+J
Surround with Live Template Ctrl+Alt+J
Comment with Line Comment Ctrl+斜杠
Comment with Block Comment Ctrl+Shift+斜杠
Reformat Code Ctrl+Alt+L
Show Reformat File Dialog Ctrl+Alt+Shift+L
Move Statement Down Ctrl+Shift+向下箭头
Move Line Down Alt+Shift+向下箭头
Convert Java File to Kotlin File Ctrl+Alt+Shift+K

Main Menu / Refactor Keymap
Refactor This.. Ctrl+Alt+Shift+T
Rename... Shift+F6

Main Menu / Run Keymap
Run Shift+F10
Debug Shift+F9

Main Menu / Window Keymap
Hide Active Tool Window Shift+Esc
Jump to Last Tool Window F12
Select Next Tab Ctrl+Alt+向右箭头

Main Menu / Help Keymap
Find Actions... Ctrl+Shift+A

Other Keymap
New... Ctrl+Alt+Insert
Open source in new window Shift+F4
Search everywhere Double Shift

相关文章

  • Android编码规范

    Android开发代码规范相关系列文章: Android命名规范 Android编码规范 Android编码规范有...

  • Android命名规范

    Android开发代码规范相关系列文章: Android命名规范 Android编码规范 俗话说:无规矩不成方圆,...

  • Android开发中的优化方案

    一、命名规范 代码规范先从命名规范开始,Android的命名规范主要涉及:Java源代码,xml文件,图片资源。 ...

  • Android:你不能忽略的代码命名规范

    前言 Android代码规范内容非常多,但对我们最有用& 最有影响的莫过于 Android代码的命名规范 可是,...

  • Android代码规范

    1.前言 本文档参考了Google官方Android编码风格规范,尽量形成一个统一的风格,见量知其意就可。 2.源...

  • Android代码规范

    框架要求 : 1 . 编码格式统一采用 UTF-8 , 开发工具统一使用 androidstudio . java...

  • Android 代码规范

    本文转载于Blankj/AndroidStandardDevelop: :star2: Best practice...

  • Android代码规范

    一、Android组件 通信,对于数据量比较大的,避免使用 Intent + Parcelable的方式,可以考虑...

  • Android代码规范

    在刚开始编程的时候,代码毫无规范而言,命名则是根据自己的喜好而来,记得英文的时候直接上英文,忘记的时候直接拼音,有...

  • Android代码规范

    https://blog.csdn.net/xinzailiulang992/article/details/53...

网友评论

      本文标题:Android代码规范

      本文链接:https://www.haomeiwen.com/subject/egpsfxtx.html