• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

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

 
Greenhorn
Posts: 10
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 17702
301
Mac Android IntelliJ IDE Eclipse IDE Spring Debian Java Ubuntu Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
In Eclipse, select Window > Preferences > Java > Code Style > Formatter
 
Richard Attix
Greenhorn
Posts: 10
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Bartender
Posts: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 11497
19
Android Google Web Toolkit Mac Eclipse IDE Ubuntu Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 10
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 7125
184
Eclipse IDE Postgres Database VI Editor Chrome Java Ubuntu
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I don't know of one but maybe you'd like to contribute yours.
 
Richard Attix
Greenhorn
Posts: 10
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
The only taste of success some people get is to take a bite out of you. Or this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic