Usually I write comment on else statement like this:
if (someStatements) {
do();
// comment on else statement
} else if (someOtherStatements) {
do();
// another comment on else statement
} else {
do();
}
But after IDEA rearranges code I got comments indented:
if (someStatements) {
do();
// comment on else statement
} else if (someOtherStatements) {
do();
// another comment on else statement
} else {
do();
}
How do I prevent IDEA code rearranging from intending comments? Or how to tell IDEA just dont rearrange my comments?
Aucun commentaire:
Enregistrer un commentaire