0

I have about 4000 lines of code that I need to re-style. I'm not doing this by hand. Are there any tools available that will help change style?

4 Answers4

1

AStyle (C/C++/Java/C#) command line tool. I use it within any IDE by invoking external command with shortcut.

http://astyle.sourceforge.net/

Eugene Mamin
  • 749
  • 4
  • 8
1

Try jEdit - they have auto-indentation, and works on most OSes.

http://www.jedit.org/

iancormac
  • 83
  • 5
1

"Any" IDE will do it for you. So which one are you using ?

Vim : gg , = , G

Netbeans : "Select the lines you want to reformat (indenting), then hit Alt+Shift+F. Only the selected lines will be reformatted."

Notepad++ : Check out this link posted here

Community
  • 1
  • 1
malletjo
  • 1,766
  • 16
  • 18
1

Eclipse has a configurable source code formatter that can be triggered automatically on Save and manually with Ctrl+Shift+F (customizable shortcut) for most if not all editor plugins (i.e., most if not all languages). Of those that I use, only PHP Development Tools has configuration limits there.

You really should name the programming/markup language(s) that you are using.

PointedEars
  • 14,752
  • 4
  • 34
  • 33