Open vsfeedback opened 2 years ago
Related to #30522
Design review conclusion:
This suggestion makes sense and we would take a PR that adds this codestyle (with editorconfig) option. The analyzer would be off by default to match what we generally do with new code style rules until we come up with an overarching plan to enable more analyzers by default (cc @mikadumont ).
This issue has been moved from a ticket on Developer Community.
ReSharper has a refactor action to identify and allow quick removal of redundant else statements in code.
For instance if you have code like this:
It will identify the 'else' statement is redundant and offer a refactor where you can end up with:
There is no matching quick action in Visual Studio to do the same thing. Depending on scoping considerations, VS may offer to club things into a ternary operation but that may not be desirable in all cases. This is definitely a missed feature.
Original Comments
Feedback Bot on 3/23/2022, 07:56 PM:
We have directed your feedback to the appropriate engineering team for further evaluation. The team will review the feedback and notify you about the next steps.
Original Solutions
(no solutions)