473,326 Members | 2,173 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

C++ code beautifier

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
4 6193
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
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Robert Freund | last post by:
I've been looking for a good and free code beautifier that runs on linux. About the only ones I found where Trita (www.trita.com), which costs money and only runs on windows. The other one was...
19
by: Diego Andres Alvarez Marin | last post by:
Hi all! Is there a linux tool that uses as input my ugly C/C++ code and outputs a pretty and nice formated source code? Regards, Diego
1
by: Sparhawk | last post by:
Hi, I want to integrate a code beautifier for C++ in the development process of my company. There are many beautifiers around which would meet our formatting requirements (SourceFormatX,...
0
by: guido.thelen | last post by:
Hello, maybe you are interested in this. I wrote a java applet on www.sqlinform.com which is a SQL Code beautifier. It is for all kind of SQL (SQL Server, DB2, ORACLE, Access, Informix, MySQL,...
4
by: Shug | last post by:
Hi, We need a C++ beautifier, and due to the specific requirements of some of our developers, it has to be very configurable. After trying some free ones, we now realise that we might need to...
18
by: Franz Steinhaeusler | last post by:
Hello, I did not find any reasonable pyhton source code beautifier program (preferable gui). Some would ask why? Program it immediatly good. (BTW: Would be a nice project, if I would have more...
2
by: Ole Mercano | last post by:
When I insert a new Eventhandler or function VS 2005 does this automatically with an indent which I don't like. Furthermore I would change the curly bracket handling. Is there soemthing like a...
1
by: Chris Mullins [MVP - C#] | last post by:
We've got a lot of code we're about to migrate from .Net 1.1 to .Net 3.5. This code has, shall we say, a somewhat organic coding style. I would like to run all the code thorugh a C# Beautifier...
2
by: sevak316 | last post by:
Searched the forum and didn't find any topics on this. Does anyone know where I can find a user friendly C beautifier. We are using Indent right now, but it doesnt have a friendly interface. If...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.