By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,264 Members | 1,743 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,264 IT Pros & Developers. It's quick & easy.

C++ code beautifier

P: n/a
Hi.

Do you know any good code beautifier for c++?

I tried indent but it screws my code, and astyle seems to go by its own
rules :)

Jul 23 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
gr****@gmail.com wrote:
Hi.

Do you know any good code beautifier for c++?
Pardon the stupid question, but what is a code beautifier typically used for?
Don't you write beautiful code naturally? ;-)

I sometimes use this pretty-printer when I need to read preprocessor-generated
code: http://www.prettyprinter.de/index.php
I tried indent but it screws my code, and astyle seems to go by its
own rules :)


Jonathan
Jul 23 '05 #2

P: n/a
groleo wrote:
Do you know any good code beautifier for c++?

I tried indent but it screws my code, and astyle seems to go by its own
rules :)


astyle works great what's wrong with it?

--
Phlip
http://industrialxp.org/community/bi...UserInterfaces

Jul 23 '05 #3

P: n/a
Jonathan Turkanis wrote:
gr****@gmail.com wrote:
Hi.

Do you know any good code beautifier for c++?
Pardon the stupid question, but what is a code beautifier typically

used for? Don't you write beautiful code naturally? ;-)
Jonathan Turkanis wrote: Pardon the stupid question, but what is a code beautifier typically used for? Don't you write beautiful code naturally? ;-)
What if some body else wrote the code, and it's hard to read?
I sometimes use this pretty-printer when I need to read preprocessor-generated code: http://www.prettyprinter.de/index.php

Jonathan

Phlip wrote: groleo wrote:
Do you know any good code beautifier for c++?

I tried indent but it screws my code, and astyle seems to go by its own rules :)
astyle works great what's wrong with it?


Well, I tend to use the if/else statements a little different, from the
way
astyle can indent it:

if( condition){
// code
}
else {
// code
}

so I was thinking that a style file, where indenting rules are defined
would be necessary

--
Phlip

http://industrialxp.org/community/bi...UserInterfaces

Jul 23 '05 #4

P: n/a
Hello gr****@gmail.com,
Jonathan Turkanis wrote:
gr****@gmail.com wrote:
Hi.

Do you know any good code beautifier for c++?

Pardon the stupid question, but what is a code beautifier typically

used for?
Don't you write beautiful code naturally? ;-)

Jonathan Turkanis wrote:
Pardon the stupid question, but what is a code beautifier typically

used for?
Don't you write beautiful code naturally? ;-)

What if some body else wrote the code, and it's hard to read?
I sometimes use this pretty-printer when I need to read

preprocessor-generated
code: http://www.prettyprinter.de/index.php

Jonathan

Phlip wrote:
groleo wrote:
Do you know any good code beautifier for c++?

I tried indent but it screws my code, and astyle seems to go by its
own
rules :)

astyle works great what's wrong with it?

Well, I tend to use the if/else statements a little different, from
the
way
astyle can indent it:
if( condition){
// code
}
else {
// code
}
so I was thinking that a style file, where indenting rules are defined
would be necessary
--
Phlip

http://industrialxp.org/community/bi...tUserInterface
s

astyle has several commandline params that can indent the code however you
want it
Jul 23 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.