code like this:
bool funcB()
{
return funcA();
}
Then I press hotkey for beautify-selection, the code becomes:
bool funcB()
{
return ( funcA() ); //this is what I want
}
And I press that hotkey again, the code becomes:
bool funcB()
{
return ( funcA(); //wrong code, lost a ')'
}
Language: C/C++
Beautify settings about this:
[Edits]-[Force/Removing Parenthesis]-[Parenthesis for 'return']: "Force If Complex Expression"
[Spacing]-[Statements]-[return]-[Before opening parenthesis]: checked, On
[Spacing]-[Statements]-[return]-[Pad inside parenthesis]: checked, On