Skip to content
Advertisement

Tag: code-formatting

How to make Eclipse align the ?: ternary operator?

I need the exact same effect as in this question but in Eclipse. It should only do the alignment if I explcitly insert a new line before the “:” or if the second operand (the “true” expression) is too long. Example: Answer This original answer was for Galileo which is well over a decade ago, so I’m updating it to

Best source code formatter for Javascript? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers. Questions asking us to recommend or find a tool, library or favorite off-site resource are off-topic for Stack Overflow as they tend to attract opinionated answers and spam. Instead, describe the problem and what has been done so far to solve it. Closed 9 years

Advertisement