Lines Matching +full:google +full:- +full:java +full:- +full:format
5 …is a program that pretty-prints (formats) Kotlin code, based on [google-java-format](https://githu…
14 | ---- | ---- |
20 | ------ | --------|
28 [ktfmt IntelliJ plugin](https://plugins.jetbrains.com/plugin/14912-ktfmt)
42 triggered from the `Code` menu or with the Ctrl-Alt-L (by default) keyboard
47 [`.editorconfig` file](https://www.jetbrains.com/help/idea/configuring-code-style.html#editorconfig)
54 ### from the command-line
60 java -jar /path/to/ktfmt-<VERSION>-jar-with-dependencies.jar [--dropbox-style] [files...]
63 `--dropbox-style` makes `ktfmt` use a block indent of 4 spaces instead of 2. See below for details.
66 formatting (apart from `--dropbox-style`). This is a deliberate design decision to unify our code
67 formatting on a single format.*
71 …-gradle)](https://github.com/cortinico/ktfmt-gradle) is available on the Gradle Plugin Portal. To …
73 …with the [ktfmt Gradle plugin](https://github.com/diffplug/spotless/tree/main/plugin-gradle#ktfmt).
77 …) with the [ktfmt Maven plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven#ktfmt).
83 …` uses google-java-format's underlying engine, and as such, many items on [google-java-format's FA…
87 …ng behavior. See https://github.com/google/google-java-format/wiki/FAQ#i-just-need-to-configure-it…
91 We created `ktfmt` because `ktlint` and IntelliJ sometime fail to produce nice-looking code that fi…
93 ### `ktfmt` uses a 2-space indent; why not 4? any way to change that?
95 Two reasons -
96 1. Many of our projects use a mixture of Kotlin and Java, and we found the back-and-forth in styles…
97 2. From a pragmatic standpoint, the formatting engine behind google-java-format uses more whitespac…
99 …scape-hatch for projects that absolutely cannot make the move to `ktfmt` because of 2-space: the `…
107 … bottom of "Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler" (see https://gi…
116 * Run `java -jar core/target/ktfmt-<VERSION>-jar-with-dependencies.jar`