注册 登录  
 加关注
   显示下一条  |  关闭
温馨提示!由于新浪微博认证机制调整,您的新浪微博帐号绑定已过期,请重新绑定!立即重新绑定新浪微博》  |  关闭

姑射道人的博客

博客新地址:nixuchen.com

 
 
 

日志

 
 

mac下的android studio快捷键  

2014-04-12 09:50:24|  分类: android |  标签: |举报 |字号 订阅

  下载LOFTER 我的照片书  |
In this series, we will go from very basic productivity tricks that everyone should know to more advanced topics in Android Studio. 

The following tables list keyboard shortcuts for common operations.

Note: If you're using Mac OS X, update your keymap to use the Mac OS X 10.5+ version keymaps under Android Studio > Preferences > Keymap.

Programming key commands

Command look-up (autocomplete command name) 
  •  CTRL + SHIFT + A 

Project quick fix 
  • ALT + ENTER 

Reformat code
  • CTRL + ALT + L (Win)
  • OPTION + CMD + L (Mac)

Show docs for selected API 
  • CTRL + Q (Win)
  • F1 (Mac)

Show parameters for selected method 
  • CTRL + P

Generate method 
  • ALT + Insert (Win)
  • CMD + N (Mac)

Jump to source 
  • F4 (Win)
  • CMD + down-arrow (Mac)

Delete line 
  • CTRL + Y (Win)
  • CMD + Backspace (Mac)

Search by symbol name 
  • CTRL + ALT + SHIFT + N (Win)
  • OPTION + CMD + O (Mac)
Project and editor key commands

Build 
  • CTRL + F9 (Win)
  • CMD + F9 (Mac)

Build and run 
  • SHIFT + F10 (Win)
  • CTRL + R (Mac)

Toggle project visibility 
  • ALT + 1 (Win)
  • CMD + 1 (Mac)

Navigate open tabs 
  • ALT + left-arrow; ALT + right-arrow (Win)
  • CTRL + left-arrow; CTRL + right-arrow (Mac)

Open Class File Symbol
Open class
  • CTRL+N(win)
  • CMD+O(mac)

Open file
  • CTRL+SHIFT+n(win)
  • CMD+SHIFT+o (mac)

Open Symbol
  • CTRL+SHIFT+ALT+N
  • CMD+ALT+O

Recent Files Opened
  • CTRL+E(win)
  • CMD+E(mac)

Recently edited files
  • CTRL+SHIFT+E(win)
  • CMD+SHIFT+E(mac)

Previous Next/Previous Error
  • SHIFT-F2/F2(win)

Last edited Location
  • CTRL+SHIFT+backspace(win)
  • CMD+SHIFT+backspace(mac)

Line Number
Imagine that your colleague just told you that the juicy part is in ExcitingClass at line 23. You can open the file directly by appending a “:” to the class name in the Open Classdialog. e.g.: 
ExcitingClass:22
You can also combine it with partial matching and type something like:
EC:22

Go to Declaration
  • CTRL+B(win)
  • CMD+B(mac)
Go to Super
  • CTRL+U(win)
  • CMD+Y(mac)
If you like the article "Share it" If you know some or more  please share it in comments so that we can add to list .
  评论这张
 
阅读(9939)| 评论(1)
推荐 转载

历史上的今天

评论

<#--最新日志,群博日志--> <#--推荐日志--> <#--引用记录--> <#--博主推荐--> <#--随机阅读--> <#--首页推荐--> <#--历史上的今天--> <#--被推荐日志--> <#--上一篇,下一篇--> <#-- 热度 --> <#-- 网易新闻广告 --> <#--右边模块结构--> <#--评论模块结构--> <#--引用模块结构--> <#--博主发起的投票-->
 
 
 
 
 
 
 
 
 
 
 
 
 
 

页脚

网易公司版权所有 ©1997-2017