Open ghost opened 8 years ago
Many statements like if or while statements have a body. In case that the body is an expression block it should be placed on a new line to improve usability. It can be implemented with a indent collection and a condition:
indent-layout-on-new-line:(editorContext, node)->boolean{ node.body.isInstanceOf(BodyExpr); }
This would of course need to be implemented in a more generic way.
Old version: New version:
Many statements like if or while statements have a body. In case that the body is an expression block it should be placed on a new line to improve usability. It can be implemented with a indent collection and a condition:
This would of course need to be implemented in a more generic way.
Old version: New version: