Android Studio Shortcut on MAC
2016-02-24 12:19
344 查看
# Android Studio Shortcuts (Mac) ### Notes: * Two of the most useful shortcuts utilize the Fn (function) keys. It is therefore recommended that you enable the "Use all F1, F2, etc. keys as standard function keys" option [System Preferences > Keyboard]. * Be sure to enable the Mac OS X 10.5+ keymap in Android Studio [Preferences > Keymap]. * A fairly complete shortcut list can be found [here](http://www.jetbrains.com/idea/docs/IntelliJIDEA_ReferenceCard_Mac.pdf). ### Useful symbols: ⌘ = Command Key ⌥ = Option Key ⇧ = Shift Key ⌃ = Control Key ### Essential Shortcuts: Learn these shortcuts right away. | Description | Shortcut | |:----------------------------------------------------------------------------------------|:--------------------:| | Display list of available auto-fixes for code warning/error at cursor | Option-Enter | | Go to the declaration of the variable/method/class at cursor | Option-B | | Rename **all** copies of the variable/method/class at cursor | Shift-F6 | | List **all** usages of the variable/method/class at cursor | Command-Option-F7 | | Generate code (incl. getters, setters, constructors, method overrides) | Command-N | | Search for and open any file by name (filters as you type) | Command-Shift-O | | Find text in the current file (Enter = cycle through results, Esc. = cancel) | Command-F | ### Frequently Useful Shortcuts: Learn these shortcuts once you have the essential shortcuts nailed. | Description | Shortcut | |:----------------------------------------------------------------------------------------|:--------------------:| | View javadoc of symbol at cursor in pop-up | F1 | | View definition of method at cursor in pop-up | Command-Y | | Skip back/forward through cursor position history | Command-[, Command-] | | Search for and list **any** occurrences of text | Command-Shift-F | | Go to next highlighted error in current file | F2 | | Run | Control-R | | Comment/Uncomment all selected lines (also works in xml files) | Command-/ | | Show available parameters for current method (must be inside parentheses) | Command-P | | Find and replace in current file | Command-R | ### Shortcuts For Wizards: Check these shortcuts out if you are bored. *To use 'navigate through open tabs', you will have to change or disable the corresponding Mission Control shortcuts [System Preferences > Keyboard > Keyboard Shortcuts > Mission Control].* | Description | Shortcut | |:--------------------------------------------------------------------------------|:-------------------------------:| | Go to given line number in current file | Command-L | | Duplicate current line | Command-D | | Format code to conform to Android Studio's default style | Command-Option-L | | List implementations/overrides of class/interface/method at cursor | Command-Option-B | | Search for and go to any symbol (incl. variables and methods) | Command-Option-O | | Show class structure in pop-up | Command-F12 | | List recently viewed files in pop-up | Command-E | | List recently edited files in pop-up | Command-Shift-E | | View code hierarchy for symbol in pop-up | Control-Option-H | | Move code block at cursor up/down | ⌘-⇧-up arrow, ⌘-⇧-down arrow | | Navigate through open tabs | ⌃-left arrow, ⌃-right arrow | | View full refactor menu | Control-T | | Collapse all code blocks / Expand all code blocks | ⌘⇧+, ⌘⇧- | | Insert new line below current cursor position | Shift-Enter | | Complete statement (add braces, parentheses, semi-colon) | Command-Shift-Enter | | Toggle scheme | Control-` |
相关文章推荐
- Android Animation 机制详解
- Android 打包签名
- Android AIDL使用详解
- android完美解决ListView中CheckBox的全选、反选、批量删除的问题
- Android 修改Menu字体颜色和背景
- MVP for Android: How to organize presentation layer
- androidStudio添加.so文件正确姿势
- Android Studio 添加第三方依赖后,控件属性不提示
- 阅读《Android 从入门到精通》(29)——四大布局
- Android控件之RatingBar自定义星级评分样式
- android Accessibility 实现自动升级,安装
- Android activity的生命周期
- Android--获取系统时间的几种方式
- Android之SharedPreferences两个工具类
- Android之shape与selector实现圆角
- 3. Android binder设计篇
- 关于android:clipChildren属性的应用
- Android之背景颜色小知识(笔记)
- Android开发之获取相册照片和获取拍照照片二
- Android开发之获取相册照片和获取拍照照片