Lines Matching +full:- +full:- +full:google +full:- +full:java +full:- +full:format +full:- +full:jar
1 …-ktfmt-purple.svg?logo=slack)](https://slack-chats.kotlinlang.org/c/ktfmt) [ Kotlin code, based on [google-java-format](https://githu…
12 | ---- | ---- |
18 | ------ | --------|
23 …ound](https://facebook.github.io/ktfmt/) where you can easily see how ktfmt would format your code.
31 [ktfmt IntelliJ plugin](https://plugins.jetbrains.com/plugin/14912-ktfmt)
45 triggered from the `Code` menu or with the Ctrl-Alt-L (by default) keyboard
50 [`.editorconfig` file](https://www.jetbrains.com/help/idea/configuring-code-style.html#editorconfig)
67 ### from the command-line
73 java -jar /path/to/ktfmt-<VERSION>-jar-with-dependencies.jar [--dropbox-style] [files...]
76 `--dropbox-style` makes `ktfmt` use a block indent of 4 spaces instead of 2. See below for details.
79 formatting (apart from `--dropbox-style`). This is a deliberate design decision to unify our code
80 formatting on a single format.*
84 …-gradle)](https://github.com/cortinico/ktfmt-gradle) is available on the Gradle Plugin Portal. To …
86 …with the [ktfmt Gradle plugin](https://github.com/diffplug/spotless/tree/main/plugin-gradle#ktfmt).
90 …) with the [ktfmt Maven plugin](https://github.com/diffplug/spotless/tree/main/plugin-maven#ktfmt).
92 ### using pre-commit hooks
94 …-commit hook](https://pre-commit.com/hooks.html) is implemented in [language-formatters-pre-commit…
100 …` uses google-java-format's underlying engine, and as such, many items on [google-java-format's FA…
104 …ng behavior. See https://github.com/google/google-java-format/wiki/FAQ#i-just-need-to-configure-it…
108 We created `ktfmt` because `ktlint` and IntelliJ sometime fail to produce nice-looking code that fi…
110 ### `ktfmt` uses a 2-space indent; why not 4? any way to change that?
112 Two reasons -
113 1. Many of our projects use a mixture of Kotlin and Java, and we found the back-and-forth in styles…
114 2. From a pragmatic standpoint, the formatting engine behind google-java-format uses more whitespac…
116 …scape-hatch for projects that absolutely cannot make the move to `ktfmt` because of 2-space: the `…
124 … bottom of "Settings -> Build, Execution, Deployment -> Compiler -> Java Compiler" (see https://gi…
133 * Run `java -jar core/target/ktfmt-<VERSION>-jar-with-dependencies.jar`