• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a downloadable XML file for Eclipse of the coderanch style guide anywhere here?

 
Richard Attix
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does anyone at coderanch have a pre-made XML style guide file adjusted to the specs of the coderanch "Java Programming Style Guide" page?  I'm guessing there is one around here somewhere that reflects their style guide decisions, but I can't seem to locate it.

Thanks for your help!

Haven61
 
Junilu Lacar
Marshal
Posts: 10389
124
Android Debian Eclipse IDE IntelliJ IDE Java Linux Mac Spring Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think there already is a BSD/Allman built-in style you can choose in Eclipse. If you want to customize that even further, you'd have to save it as a custom profile.
 
Knute Snortum
Sheriff
Posts: 3328
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In Eclipse, select Window > Preferences > Java > Code Style > Formatter
 
Richard Attix
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Hope I'm doing this right....

This is in response to Knute and Lunilu...Thanks for checking out my question.  I have gotten into the formatter in Eclipse a bit, but the problem is that if you look at the details of the coderanch style sheet, there are a bunch (100??) detailed adjustments that one can cull from it and then try to make those changes to your IDE using the formatter.  Seeing as how coderanch requires your code to be in this particular format for them to go over it and work with you, and also considering that folks using that learning tool are probably noobs (like me), it just makes sense that coderanch have a downloadable xml file that has their requirements preset, so that instead of spending a day messing with their style page and my formatter, I could just import their info and be done with it.  I see that there are a few presets in Eclipse, but they don't share all of the same settings that the coderanch desires/requires.  I hope I'm making sense here.  I did go through and carefully read their style page and went into formatter to make 7 or 8 changes so far, but it's a really slow process, and not all items mentioned in the coderanch style page totally match up with the wording the Eclipse formatter, so it does get frustrating.  I can't believe that coderanch has been around for a decade or more, and actually has a style sheet, but nobody has thought to create a downloadable "style file" to go along with it.

I'm guessing that when new folks start working in coding companies or departments, that must be the first thing they are given is an xml file of that company's style sheet to be imported and used so all code from all coders is consistent.  Am I wrong in assunimg that? 

Richard
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Eclipse has the ability to export/import code style templates.
Screen-Shot-2016-12-09-at-9.38.42-AM.png
[Thumbnail for Screen-Shot-2016-12-09-at-9.38.42-AM.png]
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For those who are not aware, the recommended style guidelines are described here
http://javaranch.com/style.jsp
 
Richard Attix
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Yup....I've got the detailed style sheet from coderanch, and I know how to use my formatter and where to find it in Eclipse, and I do understand how to import an xml style sheet into my IDE.  I have all that.  But my question still goes unanswered. 

Does anyone have a downloadable xml style sheet pre-built that takes into account all of coderanche's style requirements?  Just askin'.  Thought there would be one available from coderanch, but if there is, I can't seem to find it.

Thanks for all answers!

Richard
 
Knute Snortum
Sheriff
Posts: 3328
84
Chrome Eclipse IDE Java Postgres Database VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't know of one but maybe you'd like to contribute yours.
 
Richard Attix
Greenhorn
Posts: 7
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Well, If I find myself with a day to burn, perhaps a snow day, where I can sit and pick apart the whole coderanch style sheet page and then fully cross reference it to my eclipse formatter and get it all in there, I'll post it, but don't hold your breath...
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!