[1617] Funny Syntax Highligthing issue

I have a situation in my source code where a local variable is treated as class. To show this i made two screenshots. In the first one you can see that i have commented line 136. If i uncomment this line, the local variable 'vm' is treated as class as shown in the second screenshot.

Regards
Klaus



Attachment(s):
Highlight2.PNG
Highlight1.PNG
6 comments
Comment actions Permalink

It is not a funny issue, it is great feature :) It so happens, that you have
same format for type identifier, and for "mutable local variable". Mutable
variable is such a variable, which changes its value after using previously
assigned variable. You first initialize vm, then checks it for null (read)
and then assign another value. Hence, it is mutable. You can style for mutable
variables in Fonts & Colors. Look for "ReSharper Mutable Local Variable Identifier".

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


IR> I have a situation in my source code where a local variable is
IR> treated as class. To show this i made two screenshots. In the first
IR> one you can see that i have commented line 136. If i uncomment this
IR> line, the local variable 'vm' is treated as class as shown in the
IR> second screenshot.
IR>
IR> Regards
IR> Klaus
IR> ---
IR> Original message URL:
IR> http://www.jetbrains.net/devnet/message/5256824#5256824


0
Comment actions Permalink

Hello Ilya,

i'm using Resharper for so long time (since 1.0) but it still surprises me sometimes .It's a nice feature.

By the way, current line highlighting doesn't work satisfactory. It hides other highlightings like selected text or breakpoints. Specially if you select text in the current line you nearly can't see what you have selected. There is just a small one pixel line under the current line highlighting.

Regards
Klaus

0
Comment actions Permalink

Hello Klaus,

By the way, current line highlighting doesn't work satisfactory. It
hides other highlightings like selected text or breakpoints. Specially


+1

I liked the gradient for VS2010 in early version, the current line should
be highlighted with opacity.

Regards

Albert


0
Comment actions Permalink

I agree, the gradient was a much better idea. I think there should be an option for having either a gradient or a single-color highlight. Also, the vertical highlight for the current column seems to be gone. I know a number of people didnt like it, but it certainly is a good and useful option to have sometimes, so I'd like to see that come back, if possible.

0
Comment actions Permalink

Hello Me,

I liked the gradient for VS2010 in early version, the current line
should be highlighted with opacity.


VS2010, Build 1619 Current Line Highlighting is ok for me.

Regards

Albert


0
Comment actions Permalink

Hello,

We have not yet migrated to VS 10 with our main project, which means that
such radical features cannot be tested in real-world scenarios. We cannot
rely on abstract justifications or a few random feedbacks, so no chance in
v5. Playing with the prototype impl in a few early preview nightly builds
is quite a different matter compared to doing a production feature.


Serge Baltic
JetBrains, Inc — http://www.jetbrains.com
“Develop with pleasure!”


0

Please sign in to leave a comment.