Add missing {}?

Hi,

I thought, there was an option to add missing {} to a construct like

if (condition)
doSomething();

to achieve

if (condition) {
doSomething();
}

... but I could not find that option any more. Maybe I just search at
the wrong place? Can somebody please enlighten me?

Tom

3 comments
Comment actions Permalink

Thomas Singer (MoTJ) wrote:

I thought, there was an option to add missing {} to a construct like


Code Style / Indents and Braces / Force Braces?

0
Comment actions Permalink

Surround with {} ?

0
Comment actions Permalink

Ah, there it is. Thanks 8)

Tom

0

Please sign in to leave a comment.