Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Importing Code Formatter Eclipse Java

Tags:

java

eclipse

Hello I want to ident my Java's code with the Google's style. So I download the last version of checkstyle from the orginal source:

http://checkstyle.sourceforge.net/cmdline.html

I extract It so I get a checkstyle_packages.xml on my directory. I run Eclipse:

In Eclipse I go to Window -> Preferences -> Java -> Code Style -> Formatter

I click Import

I select checkstyle_packages.xml

But It doesn't import anything.

What am I doing wrong ?

like image 718
Igna94 Avatar asked May 07 '26 15:05

Igna94


1 Answers

You might want to get the xml from here:

https://github.com/google/styleguide

You can also find JetBrains IDEA (IntelliJ) xml files in this repository which are the only ones I personally have experience with.

As far as I'm aware these don't require the use of checkstyle.

like image 191
dlamblin Avatar answered May 10 '26 08:05

dlamblin



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!