Skip to main content



      Home
Home » Language IDEs » C / C++ IDE (CDT) » GNU Indent, code formatter - how to set options?
GNU Indent, code formatter - how to set options? [message #146209] Fri, 27 May 2005 11:13 Go to next message
Eclipse UserFriend
I have installed the CDT plug-in for the GNU Indent codeFormatter
(from the <a
href=" http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/cdt- home/community.html?cvsroot=Tools_Project">CDT
community page</a>).
I have cygwin's indent, and enabled
the codeFormatter in the Preferences page as per the instructions on the
CDT community page. It works nicely!

How do I set the options? I can see the options I want in the GNU indent
man page, but how do I pass these to the codeFormatter?
org.eclipse.cdt.indent.IndentFormatter has a setOptions() method, but
is there a way to give it some options? If I were to add this to the
preference page, how would I get hold of the IndentFormatter object?

....Beth Tibbitts
Re: GNU Indent, code formatter - how to set options? [message #146228 is a reply to message #146209] Fri, 27 May 2005 14:54 Go to previous message
Eclipse UserFriend
Aha! Alain's append to the mailing list has the workaround.
http://dev.eclipse.org/mhonarc/lists/cdt-ui-dev/msg00054.htm l
Basically, use a profile file, see the INDENT man pages
(In windoze, e.g., I set INDENT_PROFILE=c:\mypath\indent.pro
and put my formatting options in that file.)

....Beth
Previous Topic:Outline view for the whole project
Next Topic:Debug - async Q
Goto Forum:
  


Current Time: Sat May 10 06:30:20 EDT 2025

Powered by FUDForum. Page generated in 0.04678 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top