OLD | NEW |
---|---|
1 # Android Studio | 1 # Android Studio |
2 | 2 |
3 [TOC] | 3 [TOC] |
4 | 4 |
5 ## Usage | 5 ## Usage |
6 | 6 |
7 Make sure you have followed | 7 Make sure you have followed |
8 [android build instructions](android_build_instructions.md) already. | 8 [android build instructions](android_build_instructions.md) already. |
9 | 9 |
10 ```shell | 10 ```shell |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
94 * Help -> Find Action -> "Code Style" (settings) -> Java -> | 94 * Help -> Find Action -> "Code Style" (settings) -> Java -> |
95 Manage -> Import -> select "Intellij IDEA code style XML" -> OK | 95 Manage -> Import -> select "Intellij IDEA code style XML" -> OK |
96 * Select `tools/android/android_studio/ChromiumStyle.xml` | 96 * Select `tools/android/android_studio/ChromiumStyle.xml` |
97 * Turn on automatic import: | 97 * Turn on automatic import: |
98 * Help -> Find Action -> "Auto Import" | 98 * Help -> Find Action -> "Auto Import" |
99 * Tick all the boxes under "Java" and change the dropdown to "All". | 99 * Tick all the boxes under "Java" and change the dropdown to "All". |
100 * Turn on documentation on mouse hover: | 100 * Turn on documentation on mouse hover: |
101 * Help -> Find Action -> "Show quick documentation on mouse move" | 101 * Help -> Find Action -> "Show quick documentation on mouse move" |
102 * Turn on line numbers: | 102 * Turn on line numbers: |
103 * Help -> Find Action -> "Show line numbers" | 103 * Help -> Find Action -> "Show line numbers" |
104 * Format changed files (Useful for changes made by running code inspection): | |
105 * Set up version control (May require project to be inside the src folder) | |
106 * Help -> Find Action -> "Version Control" | |
estevenson
2017/05/09 15:50:52
After generating a new project, clicking "Version
F
2017/05/09 17:29:28
Done. I've updated the instructions to use File->S
| |
107 * Commit changes and reformat | |
108 * Help -> Find Action -> "Commit Changes" | |
109 * Check "Reformat code" & "Optimize imports" and commit | |
104 | 110 |
105 ### Useful Shortcuts | 111 ### Useful Shortcuts |
106 | 112 |
107 * `Shift - Shift`: Search to open file or perform IDE action | 113 * `Shift - Shift`: Search to open file or perform IDE action |
108 * `Ctrl + N`: Jump to class | 114 * `Ctrl + N`: Jump to class |
109 * `Ctrl + Shift + T`: Jump to test | 115 * `Ctrl + Shift + T`: Jump to test |
110 * `Ctrl + Shift + N`: Jump to file | 116 * `Ctrl + Shift + N`: Jump to file |
111 * `Ctrl + F12`: Jump to method | 117 * `Ctrl + F12`: Jump to method |
112 * `Ctrl + G`: Jump to line | 118 * `Ctrl + G`: Jump to line |
113 * `Shift + F6`: Rename variable | 119 * `Shift + F6`: Rename variable |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
145 [here](/docs/android_debugging_instructions.md#Android-Studio)). | 151 [here](/docs/android_debugging_instructions.md#Android-Studio)). |
146 * Import resolution and refactoring across all modules. | 152 * Import resolution and refactoring across all modules. |
147 * Correct lint and AndroidManifest when only one target is specified. | 153 * Correct lint and AndroidManifest when only one target is specified. |
148 | 154 |
149 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034)) | 155 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034)) |
150 | 156 |
151 * Gradle being aware of assets. | 157 * Gradle being aware of assets. |
152 * Layout editor. | 158 * Layout editor. |
153 * Add support for native code editing. | 159 * Add support for native code editing. |
154 * Make the "Make Project" button work correctly. | 160 * Make the "Make Project" button work correctly. |
OLD | NEW |