[ answered ] Change "if () blah" to "if () { blah }"

I'm having a lot of lines like this:

if ($test)

     a_call();


and I want to change them to a cleaner:

if ($test) {

     a_call();

}

right now I'm doing it completely manually, but is there a shortcut to do that? I mean for the current line, not for a whole file or a bunch of files.

TIA

greg

2 comments
Comment actions Permalink

Hi there,

Select desired text and invoke "Code | Reformat Code..."

Formatting rules can be set at "Settings | Code Style"

0
Comment actions Permalink

I forgot to thank you!

Thank you :^O

0

Please sign in to leave a comment.