How to format java code automatically to add braces in eclispe
if (type == null) {
if (other.type != null)
return false;
} else if (!type.equals(other.type))
return false;
How to format java code automatically to add braces in eclispe
if (type == null) {
if (other.type != null)
return false;
} else if (!type.equals(other.type))
return false;
You did not specify your OS , But generally following key combinations works to format code in eclipse :
Windows Os : CRTL + SHIFT + F
Mac Os :⌘ + ⇧ + F
Hope this will help you.