General questions about using TextPad
Moderators: AmigoJack , bbadmin , helios , Bob Hansen , MudGuard
vb.net
Posts: 10 Joined: Tue Jun 10, 2003 4:02 am
Post
by vb.net » Wed Sep 15, 2004 4:44 am
I am in the situation of editing a lot of code written by other people in this format:
Code: Select all
public class Example {
public Example {
}
}
I would like to reformat this type of code as:
Code: Select all
public class Example
{
public Example
{
}
}
Any macro or utility out there that could make my life easier?
talleyrand
Posts: 624 Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:
Post
by talleyrand » Wed Sep 15, 2004 4:57 am
You might google for code (re)formatters. I've seen them for Java so I suspect they exist for other languages.
I choose to fight with a sack of angry cats.
Ed
Posts: 103 Joined: Tue Mar 04, 2003 9:09 am
Location: Devon, UK
Post
by Ed » Wed Sep 15, 2004 5:54 am
Try gc, it works very well, is free but seems to be no longer supported though the source code is available. It can be configured to do just this.
http://perso.club-internet.fr/cbeaudet/