-
Notifications
You must be signed in to change notification settings - Fork 440
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Google Java Format #419
Comments
This would be cool. I'm looking for a way of configuring the formatter and the code organizer with similar settings to eclipse/intellij even better if I can import the files directly. Seems like this extension comes with predefined settings which cannot be changed. |
The only way you can set it up currently is to save the google java format as eclipse formatter settings, in your .settings/org.eclipse.jdt.core.prefs. |
I added an entry to the wiki |
I've found a solution that works ok. https://code.visualstudio.com/docs/editor/tasks For that to work make sure
Here's my {
"version": "2.0.0",
"tasks": [
{
"label": "Run google java format",
"type": "shell",
"command": "google-java-format --replace ${file}"
}
]
} |
Would be nice to have this built into the extension so it can work with "format on save". |
@azdanov Could you go into a bit more detail about the process you found? I am running on a Windows system what exactly is the brew program and is is that the required method to install the formatter? |
There is a new Google Java Format extension released a couple of months ago available in Visual Studio Marketplace whose source code is hosted on GitLab. To make it work you need to:
|
You can try new extension which can be found here. It works without any hustle, there is no configuration. |
Is 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
?The text was updated successfully, but these errors were encountered: