🌐
GitHub
github.com › google › google-java-format
GitHub - google/google-java-format: Reformats Java source code to comply with Google Java Style. · GitHub
August 14, 2026 - Option --help will print full usage ... from a file, instead of arguments. To reformat changed lines in a specific patch, use google-java-form......
Author: google
🌐
GitHub
github.com › google › google-java-format › issues › 319
google-java-format import sorting for AOSP · Issue #319 · google/google-java-format
November 12, 2018 - google-java-format supports the --aosp flag, which formats 4 spaces (instead of the default 2 spaces). AOSP style guide recommends a AOSP specific way to sort imports. If the team open to contribution to extend ImportOrderer to support A...
Author: google
🌐
GitHub
github.com › google › google-java-format › pull › 251
This adds an AOSP formatter to the Eclipse plugin. by bryanschofield · Pull Request #251 · google/google-java-format
... by creating two different Eclipse Java Formatter implementations that are selectable in the _Java Code Style > Formatter_ preferences. The `google-java-format` acts just the same. A new `aosp-java-format` enables AOSP options.
Author: google
Author: serikb
🌐
GitHub
github.com › google › google-java-format › actions › runs › 18785970444 › job › 53604192391
Add support for AOSP formatting in the Eclipse plugin · google/google-java-format@39b6212
Reformats Java source code to comply with Google Java Style. - Add support for AOSP formatting in the Eclipse plugin · google/google-java-format@39b6212
Author: google
🌐
Pantsbuild
pantsbuild.org › subsystems › google-java-format
google-java-format | Pantsbuild
Use AOSP style instead of Google Style (4-space indentation). ("AOSP" is the Android Open Source Project.) --[no-]google-java-format-skip PANTS_GOOGLE_JAVA_FORMAT_SKIP
🌐
GitHub
github.com › google › google-java-format › blob › master › core › src › main › java › com › google › googlejavaformat › java › JavaFormatterOptions.java
google-java-format/core/src/main/java/com/google/googlejavaformat/java/JavaFormatterOptions.java at master · google/google-java-format
public record JavaFormatterOptions(boolean formatJavadoc, boolean reorderModifiers, Style style) { public JavaFormatterOptions { requireNonNull(style, "style"); } · public enum Style { /** The default Google Java Style configuration. */ GOOGLE(1), · /** The AOSP-compliant configuration.
Author: google
🌐
GitHub
github.com › google › google-java-format › blob › master › scripts › google-java-format-diff.py
google-java-format/scripts/google-java-format-diff.py at master · google/google-java-format
help='use AOSP style instead of Google Style (4-space indentation)') parser.add_argument('--skip-sorting-imports', action='store_true', help='do not fix the import order') parser.add_argument('--skip-removing-unused-imports', action='store_true', help='do not remove ununsed imports') parser.add_argument( '--skip-javadoc-formatting', action='store_true', default=False, help='do not reformat javadoc') parser.add_argument('-b', '--binary', help='path to google-java-format binary') parser.add_argument('--google-java-format-jar', metavar='ABSOLUTE_PATH', default=None, help='use a custom google-java-format jar') ·
Author: google
🌐
Stack Overflow
stackoverflow.com › questions › 76716652 › how-to-get-similar-google-java-formatting-in-intellij-and-with-maven
How to get similar google java formatting in intellij and with maven - Stack Overflow
"Enable google-java-format" is checked in the settings, but how to be sure? ... You could try using other formatting integrations instead of spotless - github.com/google/google-java-format/tree/… or discuss this issue with the google-java-format plugin developer directly at github.com/google/google-java-format/issues
Find elsewhere
🌐
GitHub
github.com › mernst › google-java-format
GitHub - mernst/google-java-format · GitHub
Option --help will print full usage ... from a file, instead of arguments. To reformat changed lines in a specific patch, use google-java-form......
Author: mernst
🌐
GitHub
github.com › google › google-java-format › issues › 179
google-java-format Eclipse plugin does not provide AOSP Style option as google-java-format IntelliJ plugin · Issue #179 · google/google-java-format
August 21, 2017 - The google-java-format Eclipse plugin works in Eclipse IDE for Java Developers Version: Oxygen Release (4.7.0) Build id: 20170620-1800 But it does not provide AOSP Style option. Is this intentional design? Most members of my team like AO...
Author: google
🌐
GitHub
github.com › diffplug › spotless › issues › 2071
Maven: Inconsistent formatting of Java (google AOSP style) with plugin and google-java-format.jar · Issue #2071 · diffplug/spotless
March 19, 2024 - As an extra test, I downloaded the google-java-format jar for v1.21.0 ran java -jar /tmp/google-java-format-1.21.0-all-deps.jar -r --aosp OpenApiConfig.java and it does no modifications after reformatting with intellij plugin:
Author: diffplug
🌐
GitHub
github.com › google › google-java-format › wiki › FAQ
FAQ · google/google-java-format Wiki · GitHub
Most options are used only to switch entire behaviors on or off. (The primary exception is --aosp which allows the tool to be used with AOSP code, but inside Google this option is never surfaced through all the various integrations.)
Author: google
🌐
GitLab
gitlab.com › aosp mirror › platform › external › google-java-format
AOSP mirror / platform / external / google-java-format · GitLab
google-java-format · Project information · README · Apache License 2.0 · CONTRIBUTING · Created on · October 13, 2023 · Loading
🌐
GitHub
github.com › JoseVSeb › google-java-format-for-vs-code › issues › 12
"java.format.settings.google.extra": "--aosp" (For 4 instead of 2 spaces) doesn't seem to work · Issue #12 · JoseVSeb/google-java-format-for-vs-code
February 7, 2024 - I've added the following (here): "java.format.settings.google.extra": "--aosp", // For 4 instead of 2 spaces! but it seems to ignore this? (It's formatting with 2 instea...
Author: JoseVSeb
Starred by 119 users
Forked by 30 users
Languages: TypeScript 99.6% | JavaScript 0.4%
🌐
GitHub
github.com › sherter › google-java-format-gradle-plugin
GitHub - sherter/google-java-format-gradle-plugin · GitHub
You can even define SNAPSHOT versions, ... googleJavaFormat { options style: 'AOSP' } The extension object allows you to configure the default inputs for all tasks related to this plugin....
Author: sherter
🌐
GitHub
github.com › google › google-java-format › issues › 73
AOSP style should have an option for two space continuations · Issue #73 · google/google-java-format
September 1, 2016 - A reasonable solution to this problem is to use two-space continuations rather than eight-space continuations when formatting code in the AOSP style.
Author: google