Saturday, August 20, 2016

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

Leave a Comment

I whant to make my format for code. But netbeans not allow to do it. I've change all settings in Tools->Options->Editor->Formatting, But not got needed result.

When i click format I'm goting this:

enter image description here

But i whant to get this:

enter image description here

Pay attantion to position of the ")". If it needed to make changes in pluging source code I can do. But i do not know where to look for this`

2 Answers

Answers 1

Download below plugin and use formatter

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

Answers 2

Use Alt + Shift + F to format your code in Netbeans.

This command will format the entire file, however, if you just want to format a specific block of code, then select those lines and then use this command.

If You Enjoyed This, Take 5 Seconds To Share It

0 comments:

Post a Comment