Line break option when using multiple conditional expressions #46602
Unanswered
vsfeedback
asked this question in
General
Replies: 1 comment
-
IDE will already wrap this if the line is long (i think that is measured at about 120 cols). Wrapping uses the nice form of:
That way when-true/when-false clauses are aligned, which makes it clearer what is paired with what. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
This issue has been moved from a ticket on Developer Community.
The IDE0046 suggestion makes a series of multiple conditional expressions awkward.
Original Code:
Applied IDE0046 suggestion:
I want the code formatted to be cleanly formatted, with colon followed by a new line of code.
Original Comments
Feedback Bot on 8/3/2020, 03:18 AM:
Thank you for taking the time to provide your suggestion. We will do some preliminary checks to make sure we can proceed further. We'll provide an update once the issue has been triaged by the product team.
Beta Was this translation helpful? Give feedback.
All reactions