Es posible que accidentalmente comentará dentro de } en una línea de código. Por ejemplo:
while (x==y){
do this;
do that;}
Si decide que ya no quiere "do that", tenga mucho cuidado de no quitar el }, como se ha hecho aquí.
while (x==y){En su lugar, la mejor manera es mantener } en su propia línea .
do this;
//do that;}
while (x==y){
do this;
//do that;
}