You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@netbeans.apache.org by Joel Strasser <st...@gmail.com> on 2020/03/25 22:22:39 UTC

[java] Google style for Java

 Hello,

Is there a way to format Java files according to the Google style
guidelines?

I tried various plugins but they did not satisfy my expectations.

Are there other possibilities to accomplish this?

Greetings,

Joel

Re: [java] Google style for Java

Posted by John Mc <mc...@gmail.com>.
I had a first draft of a NetBeans plugin I worked on previously[1].

I'd fixed some issues, but was able to get the release done correctly...
Need to come back to that.  But what you could do is close that repo,
build the project and install the nbm file into NetBeans as a plugin.

Any issues, please let me know in GitHub and I can look to address them.

Regards

John


[1]: https://github.com/mcdonnell-john/nb-google-java-code-formatter-plugin
On Thu, 26 Mar 2020 at 01:24, Joel Strasser <st...@gmail.com> wrote:

> I went by configuring the required options myself. But thank you anyway!
>
> Mit freundlichen Grüßen/Best regards,
>
> Joel Strasser (joestr)
> strasser999@gmail.com
>
> On Thu, 26 Mar 2020, 01:45 Zahid Rahman, <za...@gmail.com> wrote:
>
>> “Integrate Google Java Style Guide in a Java project” by Alex Prut
>> https://link.medium.com/oMuepe6J94
>>
>> On Wed, 25 Mar 2020, 22:22 Joel Strasser, <st...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> Is there a way to format Java files according to the Google style
>>> guidelines?
>>>
>>> I tried various plugins but they did not satisfy my expectations.
>>>
>>> Are there other possibilities to accomplish this?
>>>
>>> Greetings,
>>>
>>> Joel
>>>
>>

RE: [java] Google style for Java

Posted by Lister Jonathan <jo...@vaisala.com>.
For maven projects use:

(from command line)
$ mvn com.coveo:fmt-maven-plugin:format

Or, in Netbeans right click the (parent) project and Run Maven | Goals, enter ‘com.coveo:fmt-maven-plugin:format’ as the goal, click Remember as and enter e.g. ‘format’, then OK.

From: Joel Strasser <st...@gmail.com>
Sent: Thursday, 26 March, 2020 01:24
To: Zahid Rahman <za...@gmail.com>
Cc: users@netbeans.apache.org
Subject: Re: [java] Google style for Java

I went by configuring the required options myself. But thank you anyway!
Mit freundlichen Grüßen/Best regards,

Joel Strasser (joestr)
strasser999@gmail.com<ma...@gmail.com>

On Thu, 26 Mar 2020, 01:45 Zahid Rahman, <za...@gmail.com>> wrote:
“Integrate Google Java Style Guide in a Java project” by Alex Prut https://link.medium.com/oMuepe6J94

On Wed, 25 Mar 2020, 22:22 Joel Strasser, <st...@gmail.com>> wrote:
Hello,

Is there a way to format Java files according to the Google style
guidelines?

I tried various plugins but they did not satisfy my expectations.

Are there other possibilities to accomplish this?

Greetings,

Joel

Re: [java] Google style for Java

Posted by Joel Strasser <st...@gmail.com>.
I went by configuring the required options myself. But thank you anyway!

Mit freundlichen Grüßen/Best regards,

Joel Strasser (joestr)
strasser999@gmail.com

On Thu, 26 Mar 2020, 01:45 Zahid Rahman, <za...@gmail.com> wrote:

> “Integrate Google Java Style Guide in a Java project” by Alex Prut
> https://link.medium.com/oMuepe6J94
>
> On Wed, 25 Mar 2020, 22:22 Joel Strasser, <st...@gmail.com> wrote:
>
>> Hello,
>>
>> Is there a way to format Java files according to the Google style
>> guidelines?
>>
>> I tried various plugins but they did not satisfy my expectations.
>>
>> Are there other possibilities to accomplish this?
>>
>> Greetings,
>>
>> Joel
>>
>

Re: [java] Google style for Java

Posted by Zahid Rahman <za...@gmail.com>.
“Integrate Google Java Style Guide in a Java project” by Alex Prut
https://link.medium.com/oMuepe6J94

On Wed, 25 Mar 2020, 22:22 Joel Strasser, <st...@gmail.com> wrote:

> Hello,
>
> Is there a way to format Java files according to the Google style
> guidelines?
>
> I tried various plugins but they did not satisfy my expectations.
>
> Are there other possibilities to accomplish this?
>
> Greetings,
>
> Joel
>