Visual Studio 2010 - code coloring inconsistency - visual-studio-2010

In Visual Studio 2010 I've noticed this below shown code coloring inconsistency - anyone who can tell me why the second and last modGlobal are not colored?

I've had this too. Happens sometimes and seems to be a bug. When you try to edit the code a little bit (adding new lines, cut/paste) the color coding will return.

Are you using Visual Studio 2010 SP1? if not try getting SP1 for VS2010, that will probably solve the problem.

Related

Visual Studio F# Intellisense stopped working

VS Pro F# compiler still works. Correct F# code still runs. BUT hovering over a function or symbol in a VS window presenting F# code no longer causes its type to appear as a tool-tip.
For no reason I can discern my Visual Studio Pro has stopped live-checking my F# code. No idea why the change. I can still compile and of course type errors are still emitted.
Any idea where it is controlled in VS Pro?
Any ideas why F# Intellisense might suddenly NOT
work in VS Pro?
Thank you!
This issue may reappear in the future so I will not mark any answer as final. If you have a fix that works then please state the version of Visual Studio and F# Tools (found in the About Visual Studio pop-up) with your answer
Version:
Visual Studio 17.23
Visual F# Tools 17.1.0-beta.2253.3
As Bent Tranberg noted the F# Github repo has a discussion "F# intellisense sometimes stops working #12982". Looks like a fix will be pushed into the next update of F# (Visual Studio).
But what worked for me was to both:
close and restart Visual Studio
Recompile your project (need not be error-free)
After this my Intellisense tooltips would appear.

Visual Studio 2010 and 2013 not working on my system

I apologize as this may seem as bit of a general question.
I have developed a couple of VB programs using Visual Studio 2010 Professional and others on Visual Studio 2013 Ultimate. While I have not done any work in about a month with either version of Visual Studio, I thought I would go in and start work on a new project.
After entering some code in Visual Studio 2010 using WinForms, I found I was unable to run the code in the debugger (pressed the start button and F5).
It acted like it would start, then it just stopped and returned back to my code.
I thought I would try it on another program that was completed and working a couple of months ago, but I had the same issue present itself. Attempting to use Visual Studio 2013 had the same effect.
Any ideas from anyone? Has anyone else experienced this same issue recently? Once again, I do apologize for the lack of examples here, but I'm not sure what I can include to show the problem.
IMO, you should try resetting visual studio settings (and a restart may solve the issue)
you can try following
do it via visual studio -> tools -> import export settings
or you can run this command devenv /resetuserdata
or checkout this http://msdn.microsoft.com/en-us/library/ms241273.aspx

My Visual Studio have a trouble

I don't know what happened with my Visual Studio. What is it? How I can fix it? Problem like that I have just in Visual studio. Other programs working and rendering correct.
If I'll scroll document - VS refreshing and working correct 1 minute, and after happening the same.
Using VS 2010 SP1.
Solved!
I unchecked this option, and right now working perfect!

Visual Studio 2010 opens wrong file

Visual Studio has a habit of opening the wrong file in my solution - only a small proportion of the time, but several times a day and often enough to be annoying. It can happen when doing any of the following:
Opening a file from solution explorer
Using F7 to switch between aspx and code behind
Right clicking a method and selecting "go to declaration"
Has anyone else experienced this and have any ideas as to what could cause / fix this?
Update: I've finally got round to installing SP1 and it still occurs so I'm back to looking for a solution.
In case it's relevant, I've got both Resharper 5.1 and Visual Studio Productivity Power Tools installed.
Update 2: It looks like Visual Studio Productivity Power Tools was part of the problem, I’ve uninstalled it and have not had issues since.
I uninstalled Visual Studio Productivity Power Tools and it now works.
Have you service pack 1 installed?

is it my Visual Studio 2008 problem or is it Dreamweaver capability?

Oh no....
I just realized it, that the Visual Studio 2008 is getting me confused.
If we compared to the DreamWeaver later version... not the latest one, okay...
That DreavWeaver has a SPLIT View (in between the design and code).
And here, the Visual Studio 2008 also has that capability.
The difference is that... in Visual Studio 2008,
When the user start Clicking the Designer portion, the cursor on Code view doesn't get into focus. Yeah, meanwhile, in DreamWeaver, at the time user click on the designer portion, the mouse pointer is focusing into the code location accordingly....
Uh, oh.... this is getting me tired. Shall I update something into this Visual Studio 2008 version, guys? :(
use Visual Studio 2010 and be happy

Resources