Any macro to reformat brackets?

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
vb.net
Posts: 10
Joined: Tue Jun 10, 2003 4:02 am

Any macro to reformat brackets?

Post by vb.net »

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?
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post by talleyrand »

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 »

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/
Post Reply