Author Topic: Indentation style question  (Read 3825 times)

Grant

  • New Community Member
  • Posts: 1
  • Hero Points: 0
Indentation style question
« on: January 31, 2008, 06:00:32 AM »
Is it possible to configure slickedit to indent like this?
Code: [Select]

if (foo)
   {
      bar();
      x = 1;
   }
else
   asdf();

while (something)
   dothis();

while (somethingElse)
   {
      dothat();
      andTheOther();
   }

I know, I should just switch to a more "standard" indentation
style, but I've got a lot of code that's indented like that, and I
don't feel like changing all of it.

Wanderer

  • Senior Community Member
  • Posts: 557
  • Hero Points: 23
Re: Indentation style question
« Reply #1 on: January 31, 2008, 11:32:39 AM »
I know, I should just switch to a more "standard" indentation
style, but I've got a lot of code that's indented like that, and I
don't feel like changing all of it.
Tools->Beautify makes it simple.  Beautify a specified block, or an entire file.  I'm sure someone reading this knows how to write a macro to run Beautify on all files in a project...