您的位置:首页 > 移动开发 > Android开发

【Tools】【IDE】AndroidStudio 使用技巧

2016-02-20 15:43 295 查看
AndroidStudio 使用技巧:

1. Android Studio 小技巧

2. Android Studio 格式化代码

3. Android Studio 使用技巧

Note:

1. Ctrl + Shift + Backspace, 退到上一次编辑处。

2. Alt+Q, Press Alt+Q (View | Context Info) to see the declaration of the current method without the need to scroll to it.     

3. Ctrl+E (View | Recent Files) brings a popup list of the recently visited files. Choose the desired file and pressEnter to open it.     

4. Use F2/Shift+F2 keys to jump between highlighted syntax errors.

    Use Ctrl+Alt+向上箭头/Ctrl+Alt+向下箭头 shortcuts to jump between compiler error messages or search operation results.     

5. Use Ctrl+J to complete any valid Live Template abbreviation if you don't remember it. For example, typeit and pressCtrl+J to see what happens.
    

6. To show separator lines between methods in the editor, open the editor settings and select theShow method separators check box in theAppearance page. 

7. When using basic code completion (Ctrl+空格), type any characters that exist anywhere in an identifier.

8. Use Alt+向上箭头 and Alt+向下箭头 keys to quickly move between methods in the editor. 

9. Use Refactor | Copy to create a class which is a copy of the selected class. This can be useful, for example, when you need to create a class which has much incommon with some existing
class and it's not feasible to put the shared functionality in a common superclass. 

10. Use the Ctrl+Shift+V shortcut to choose and insert recent clipboard contents into the text.     

11. To see the inheritance hierarchy for a selected class, press
Ctrl+H (Navigate | Type Hierarchy). You can also invoke the hierarchy view right from the editor to see the hierarchy for the currently edited class.     
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: