Add section about staircase indent

Sebastian
2020-12-07 16:47:31 +00:00
parent 53fc96fcec
commit 0f8760bb83

@@ -9,6 +9,29 @@
* `CONSTANTS_LIKE_THIS`, `variablesLikeThis`
* `AbcCamelCase` rather than `ABCCamelCase`
The configuration for Android Studio to format source files like this is checked
into version control so that the formatter should apply this style out of the box
(Using Ctrl+Alt+L).
# Avoid Staircase Indent
Android Studio does not remove manual line breaks or line breaks that have been added
by the formatter before. Sometimes, e.g. when adding arguments or renaming methods or variables,
this can lead to staircase-like indent such as this:
```
someVariable
.someMethod(
new LongClassNameWithSomeParameters(int foo, long bar));
```
Please avoid this and help the formatter by manually removing the first line break:
```
someVariable.someMethod(
new LongClassNameWithSomeParameters(int foo, long bar));
```
# Firefox Tab Size in Gitlab
Create `$HOME/.mozilla/firefox/[your.profile.folder]/chrome/userContent.css` (if it doesn't exist) and add: