Roslyn: Indicate mutable members in editor.

Created on 27 Jul 2019  路  5Comments  路  Source: dotnet/roslyn

Not sure how to render it best but it is useful info. I'm thinking maybe make the last char of the identifier of a mutable member in some distinct different colour. That may not work well for single char local variable names though. FSharp has had this for a while.

Area-IDE Feature Request Need Design Review

Most helpful comment

Screenshot of Roslyn code that I stole from @alrz, demonstrating a ReSharper style option:

image

(What I'd prefer is no underline in if (workingDirectory == null) but underlines everywhere below it in the file.)

All 5 comments

@JohanLarsson can you show the picture from f#?

@ReedCopsey can you help us out with a screenie?

An alternative could be to animate opacity/visibility for mutables so that they flicker like broken fluorescent lamps :)

I would like an option that changes the look of usages at or after a possible reassignment has occurred, but not before that point.

Screenshot of Roslyn code that I stole from @alrz, demonstrating a ReSharper style option:

image

(What I'd prefer is no underline in if (workingDirectory == null) but underlines everywhere below it in the file.)

Was this page helpful?
0 / 5 - 0 ratings