- How can I put enum values all one line?
Right now I get:
public enum MyEnum{
Enum 1,
Enum 2,
Enum 3
}
I’d like it all one the same line.
Also, if there is white space between a line of code and the first curly bracket, to be auto-removed.
Same for white space between a line of code and the last curly bracket.
Example:
publicvoidDamageHealth (intdamage)
{
hp = isInvincible == true ? hp : hp -= damage;
if (hp <= 0) {
Destroy (gameObject);
}
}
Becomes:
publicvoidDamageHealth (intdamage)
{
hp = isInvincible == true ? hp : hp -= damage;
if (hp <= 0) {
Destroy (gameObject);
}
}