Not all of the Sun Java Coding Convention has to do strictly with formatting. Some of it has to do with naming conventions, the order of declaraions and methods, and other things.
Sun's document leaves much unspecified; IDEA's java formatter allows you to specify many more parameters than what they cover.
I think if you open up IDEA's code style settings, you should be able to configure it about an 1 hour.
I do think it would be nice if IDEA provided a default "SunJava" coding style. I did have to customize the IDEA's default quite a bit. I remember one obvious thing was I needed to turn 'Force Braces" on.
Yes, that's what I mean. I mainly interested in the indentation and formatting stuff for the code style. The checkstyle plugin is fine for the rest like naming of variables and parameters and so on. But first I am interested in formatting.
I agree that it would be fine if IDEA provide the sun code style.
Have I understand right that you have made the work to configure a code style to fit the standard coding conventions? It would be nice if you could provide it somewhere for download.
Yes, you can get it here: http://checkstyle.sourceforge.net/
Hi,
I have installed the plugin and the plugin shows me a lot of warnings. But what I want is to format the code to fit the java coding conventions.
Maybe there's a trick to do it with the chechstyle plugin? Or has anyone a code style configuration matching the java coding conventions?
Kind Regards,
Walter
Are you talking about this:
http://java.sun.com/docs/codeconv/html/CodeConvTOC.doc.html
Not all of the Sun Java Coding Convention has to do strictly with formatting. Some of it has to do with naming conventions, the order of declaraions and methods, and other things.
Sun's document leaves much unspecified; IDEA's java formatter allows you to specify many more parameters than what they cover.
I think if you open up IDEA's code style settings, you should be able to configure it about an 1 hour.
I do think it would be nice if IDEA provided a default "SunJava" coding style. I did have to customize the IDEA's default quite a bit. I remember one obvious thing was I needed to turn 'Force Braces" on.
Yes, that's what I mean. I mainly interested in the indentation and formatting stuff for the code style.
The checkstyle plugin is fine for the rest like naming of variables and parameters and so on.
But first I am interested in formatting.
I agree that it would be fine if IDEA provide the sun code style.
Have I understand right that you have made the work to configure a code style to fit the standard coding conventions? It would be nice if you could provide it somewhere for download.
Kind Regards,
Walter