mirror of
https://gitee.com/zhangsken/AndroidIDE.git
synced 2026-10-16 07:49:44 +08:00
[Gradle] Format java source code
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ If you face `AAPT2` issue while building AndroidIDE in the IDE itself, specify t
|
||||
## Source code format
|
||||
The source code must have `4-space` indentation (soft tab).
|
||||
Java source code is formatted using `google-java-format` with `AOSP` style formatting.
|
||||
You can execute `./gradlew format` in terminal to format all Java source files using Google Java Format.
|
||||
You can execute `./gradlew formatJavaSources` in terminal to format all Java source files using Google Java Format.
|
||||
**This will commit the changes as well**.
|
||||
|
||||
## Issues & Pull requests
|
||||
|
||||
+8
-8
@@ -36,20 +36,20 @@ import org.json.JSONObject;
|
||||
*
|
||||
* <p>Examples: {@code # Empty: []
|
||||
*
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Single row: [[ESC, TAB, CTRL, ALT, {key: '-',
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Single row: [[ESC, TAB, CTRL, ALT, {key: '-',
|
||||
* popup: '|'}, DOWN, UP]]
|
||||
*
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># 2 row: [['ESC','/',{key: '-', popup:
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># 2 row: [['ESC','/',{key: '-', popup:
|
||||
* '|'},'HOME','UP','END','PGUP'], ['TAB','CTRL','ALT','LEFT','DOWN','RIGHT','PGDN']]
|
||||
*
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Advance: [[ {key: ESC, popup: {macro: "CTRL f d",
|
||||
* display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key: ALT,
|
||||
* popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a", display:
|
||||
* A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key: RIGHT,
|
||||
* popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key:
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p># Advance: [[ {key: ESC, popup: {macro: "CTRL f
|
||||
* d", display: "tmux exit"}}, {key: CTRL, popup: {macro: "CTRL f BKSP", display: "tmux ←"}}, {key:
|
||||
* ALT, popup: {macro: "CTRL f TAB", display: "tmux →"}}, {key: TAB, popup: {macro: "ALT a",
|
||||
* display: A-a}}, {key: LEFT, popup: HOME}, {key: DOWN, popup: PGDN}, {key: UP, popup: PGUP}, {key:
|
||||
* RIGHT, popup: END}, {macro: "ALT j", display: A-j, popup: {macro: "ALT g", display: A-g}}, {key:
|
||||
* KEYBOARD, popup: {macro: "CTRL d", display: exit}} ]]
|
||||
*
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>}
|
||||
* <p><p><p><p><p><p><p><p><p><p><p><p><p><p><p><p>}
|
||||
*
|
||||
* <p>Aliases are also allowed for the keys that you can pass as {@code extraKeyAliasMap}. Check
|
||||
* {@link VirtualKeysConstants#CONTROL_CHARS_ALIASES}.
|
||||
|
||||
Reference in New Issue
Block a user