[ answered ] Change "if () blah" to "if () { blah }" Follow
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
Please sign in to leave a comment.
Hi there,
Select desired text and invoke "Code | Reformat Code..."
Formatting rules can be set at "Settings | Code Style"
I forgot to thank you!
Thank you :^O