Google Java Format
See original GitHub issueIs there a way to setup formatting with Google Java Format?
Or an entirely new extension is needed which will run the jar
formatter on opened file?
If so, what would be the best way to implement this as an extension, e.g running external jar
?
Issue Analytics
- State:
- Created 6 years ago
- Reactions:13
- Comments:8
Top Results From Across the Web
google/google-java-format: Reformats Java source code to ...
google -java-format is a program that reformats Java source code to comply with Google Java Style. Using the formatter. from the command-line. Download...
Read more >Google Java Style Guide
4 Formatting · 4.1 Braces · 4.2 Block indentation: +2 spaces · 4.3 One statement per line · 4.4 Column limit: 100 ·...
Read more >google-java-format - IntelliJ IDEs Plugin
Formats source code using the google-java-format tool. This version of the plugin uses version 1.15.0 of the tool. Plugin Site. Issue Tracker. Source...
Read more >Format your Java code with google-java-format
Google's code style guide is, by far, my most favourite. And I am going to walk you through how to set it up...
Read more >com.google.googlejavaformat » google-java-format
A Java source code formatter that follows Google Java Style. License, Apache 2.0. Tags, formatgoogle. Ranking, #3099 in MvnRepository (See Top Artifacts).
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I’ve found a solution that works ok.
https://code.visualstudio.com/docs/editor/tasks
For that to work make sure
java-google-format
can be executed from terminal. In my case:brew install google-java-format
does the trick.tasks.json
file in.vscode
directory inside your workspace with necessary commands.task
and findingformat
taskHere’s my
tasks.json
file:Would be nice to have this built into the extension so it can work with “format on save”.