C++ formatting in netbeans for multi-conditional if statements
<p>I want to create a format for my code. But netbeans is not allowing to do it. I've changed the settings in <code>Tools</code>-><code>Options</code>-><code>Editor</code>-><code>Formatting</code>, but I'm not getting expected result.</p>

<p>I'm getting this when I click formatting:</p>

<p><a href="https://i.stack.imgur.com/FX6f8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/FX6f8.png" alt="enter image description here"></a></p>

<p>This is what I'm expecting the result to be:</p>

<p><a href="https://i.stack.imgur.com/OWF9x.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/OWF9x.png" alt="enter image description here"></a></p>

<p>Pay attention to the position of ")". If its needed to make changes in pluging source code I can do it, but I don't know where to look for this.</p>