N
nooneinparticular314159
Netbeans has a nice autoformatting tool. But it in the current
version, it seems to want to put comments where I really don't want
them. For example, if I have:
else{
(some code)
}
<---note the white space here, intentionally placed here by me
for readability
//This is a comment
if (blah) ...
and then I tell it to format my code, I wind up with:
else{
(some code)
} //This is a comment
if (blah)
Notice how it moved the comment up to the line containing the
trailing }. This is not where I want that comment, since it doesn't
relate to the code above it.
How do I get netbeans to stop moving my comments to other lines like
that? I want it to clean up my indentation, but not move my comments
around.
Thanks!
version, it seems to want to put comments where I really don't want
them. For example, if I have:
else{
(some code)
}
<---note the white space here, intentionally placed here by me
for readability
//This is a comment
if (blah) ...
and then I tell it to format my code, I wind up with:
else{
(some code)
} //This is a comment
if (blah)
Notice how it moved the comment up to the line containing the
trailing }. This is not where I want that comment, since it doesn't
relate to the code above it.
How do I get netbeans to stop moving my comments to other lines like
that? I want it to clean up my indentation, but not move my comments
around.
Thanks!