Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ formatting in netbeans for multi-conditional if statements

Tags:

c++

netbeans

I want to create a format for my code. But netbeans is not allowing to do it. I've changed the settings in Tools->Options->Editor->Formatting, but I'm not getting expected result.

I'm getting this when I click formatting:

enter image description here

This is what I'm expecting the result to be:

enter image description here

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.

like image 603
webmak10 Avatar asked Aug 06 '16 11:08

webmak10


1 Answers

Download below plugin and use formatter

http://plugins.netbeans.org/plugin/38688/jindent-source-code-formatter-for-java-c-c

like image 73
Yogesh Rathi Avatar answered Oct 03 '22 21:10

Yogesh Rathi