Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(914)

Side by Side Diff: docs/android_studio.md

Issue 2871963002: Update android studio doc about formatting commits. (Closed)
Patch Set: Update android studio doc about formatting commits. Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
106 * File -> Settings -> Version Control
107 * Add src directories
108 * Commit changes and reformat
109 * Help -> Find Action -> "Commit Changes"
110 * Check "Reformat code" & "Optimize imports" and commit
104 111
105 ### Useful Shortcuts 112 ### Useful Shortcuts
106 113
107 * `Shift - Shift`: Search to open file or perform IDE action 114 * `Shift - Shift`: Search to open file or perform IDE action
108 * `Ctrl + N`: Jump to class 115 * `Ctrl + N`: Jump to class
109 * `Ctrl + Shift + T`: Jump to test 116 * `Ctrl + Shift + T`: Jump to test
110 * `Ctrl + Shift + N`: Jump to file 117 * `Ctrl + Shift + N`: Jump to file
111 * `Ctrl + F12`: Jump to method 118 * `Ctrl + F12`: Jump to method
112 * `Ctrl + G`: Jump to line 119 * `Ctrl + G`: Jump to line
113 * `Shift + F6`: Rename variable 120 * `Shift + F6`: Rename variable
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 [here](/docs/android_debugging_instructions.md#Android-Studio)). 152 [here](/docs/android_debugging_instructions.md#Android-Studio)).
146 * Import resolution and refactoring across all modules. 153 * Import resolution and refactoring across all modules.
147 * Correct lint and AndroidManifest when only one target is specified. 154 * Correct lint and AndroidManifest when only one target is specified.
148 155
149 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034)) 156 ### What doesn't work (yet) ([crbug](https://bugs.chromium.org/p/chromium/issues /detail?id=620034))
150 157
151 * Gradle being aware of assets. 158 * Gradle being aware of assets.
152 * Layout editor. 159 * Layout editor.
153 * Add support for native code editing. 160 * Add support for native code editing.
154 * Make the "Make Project" button work correctly. 161 * Make the "Make Project" button work correctly.
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698