[ 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

0

Hi there,

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

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

0
Avatar
Permanently deleted user

I forgot to thank you!

Thank you :^O

0

请先登录再写评论。