You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is formatted as expected. Expression indentation is generally +4 and in the formatted code you can see the ? is indented four spaces relative to var, which is the statement that contains it.
voidmain() {
var result =
condition
?doA(
param1, // comment to force split
param2,
)
:doB();
}
Splitting between = and condition isn't ideal and is because of #1465. Aside from that, the rest of the indentation is what I expect. As I mentioned in the previous comment, expressions are generally indented +4 relative to the surrounding code, which is what the ? and : lines relative to condition.
We have this formatted code snippet:
it should be like this:
The text was updated successfully, but these errors were encountered: