[Jrefactory-users] Re: Pretty print and refactorings
Brought to you by:
mikeatkinson,
seguin
|
From: Paul H. <pr...@zz...> - 2001-08-02 21:05:56
|
Chris Seguin wrote: > You can't turn off the pretty printer. The reason is > that the refactorings is implemented as changes to the > parse tree. Once the parse tree has been changed, I > regenerate the source code with the pretty printer. Ah, I see. It's not controlling the code reformatter, it's controlling the code *generator.* > Do you need help configuring the pretty printer to > make it generate code that matches your coding style? Well, I found the docs on the home page that describe the pretty.settings file format. For a JBuilder install, I'm guessing this file ends up in the jbuilder/lib/ext directory, correct? We have all of our files formatted using a JIndent style sheet. I need to mimic this as closely as possible. If it deviates too much, then we get massive diffs when we check in to source control, which is bad. Another option is to just use JRefactory's pretty print instead of JIndent, but I'd need to sell that idea to the team. Has anyone compared JRefactory's pretty print settings to JIndent's and generated a mapping? I'll study the pretty.settings file more closely and see if I have any specific formatting questions. Thanks for the reply! Paul |