Visual Studio mark everything with green squiggly lines - visual-studio

I was coding a windows 10 uwp app. All of a sudden all my files starting getting green squiggly lines under them. I've tried cleaning, rebuilding, exiting visual studio, restarting computer, and even creating a new blank windows 10 uwp app using Template 10. None of this has solved my problems. I can't remember exactly what I did to cause this problem in the first place. I remember selecting one of the "Show potential fix". In the first image all the using are marked in green. And in the second image the project compiles fine but it is giving red marks all over.
How do I get rid of the green squiggly lines?
Update: added another image with red lines.

Related

Visual Studio 2015 Crashes While Moving Tabs or Sorting Internal Windows

Visual Studio 2015 suddenly crashes while moving any internal window to another place (Toolbox - Solution Explorer), or moving tabs to another window that already has tab in the second monitor.
If moving opened tab to another monitor it working good but once move the second tab beside it, It crashes.
I've uninstalled it and re-installed but the issue still.
I made all commands here Visual Studio 2015 crashes .. but nothing help
#Sergey Vlasov .. Thanks a lot .. Fixed after following these steps
Edit %InstallRoot%\Common7\IDE\devenv.exe.config
Edit %LocalAppData%\Microsoft\VisualStudio\14.0_xxx\devenv.exe.config .. Actually for me after added the following line in the first config file it was added to the second file automatically.
Append the following text to the AppContextSwitchOverrides element’s value attribute:
;Switch.System.Windows.Interop.MouseInput.OptOutOfMoveToChromedWindowFix=true;Switch.System.Windows.Interop.MouseInput.DoNotOptOutOfMoveToChromedWindowFix=true
After restarting VS, you should be able to drag your VS windows around without crashing.
However, based on feedback provided by users who have tested this workaround, it might not resolve the issue on systems where KB4598299 was installed.
Most probably caused by recent Windows 10 updates: https://www.bleepingcomputer.com/news/microsoft/recent-windows-10-updates-cause-visual-studio-wpf-app-crashes/

How can I manually delete visual studio?

In my case I cannot run visual studio (2015). It starts and just prints a white screen. Interestingly everything is still on the screen, if I move to the top right hand corner the icon will change and it will read "close window". I couldn't find a way to fix this so I just tried the obvious, reinstall. Except I can't. Any attempt to re-Install any version of Visual Studio, or to Maintain/Fix/Uninstall the existing version just results in the attached picture. The zero body popup-box cannot be closed, except through task manager.
So I think at this point I have 3 possibilities. Somebody can suggest another approach... I can somehow find out how to manually uninstall Visual Studio... or I delete everything and re-install everything, the whole operating system, from scratch. I think the third option is the most likely, but am hoping that there are other options.

Visual Studio 2013 Codelens just inserts blank line

I'm having an issue with CodeLens in Visual Studio 2013. I recently upgraded Visual Studio 2013 Profession to Ultimate. I have CodeLens turned on:
But for some reason, Visual Studio is just inserting a blank line where the "references" should go:
You can see the blank line between lines 79 and 80. It does this with every project and every class in any project I open.
Does anyone know what could cause this?
These are not simply "blank lines", at least they shouldn't be.
This is the space that CodeLens reserves for its information. As you see here, there is small text above the declaration for information like "2 references".
If you open a project, it will reserve this space (because it knows it will need it later) before it can actually display this information (because the full project scan takes time, more time the larger the project is)
Now, load a small project and wait a little for the info to appear. (Have an eye on the task manager while doing nothing.) If it does not appear, something might be wrong with the IDE. Maybe the text color is white on white? Try resetting the settings.
The issue seemed to fix itself when I upgraded to Visual Studio 2013 Update 5, released on 7/20/2015. My CodeLens now works as expected and shows information rather than a blank line.

Visual Studio 2010 text turns blue and red at seemingly random times

Many times a day, on a new work computer, Visual Studio's code window turns red and blue all of a sudden! The problem only goes away if I restart that instance of Visual Studio or re-apply the fonts & colors settings, closing and opening a file/tab doesn't help.
Only the currently visible file gets the glitch at first when it happens, other open tabs generally retain their proper colors until I reopen them or I open new files - which are then shown with the glitched colors. Sometimes certain types of text in other open files turns blue though, like a virus spreading ;)
I'm guessing there's a plugin or a missing hotfix or glitchy graphics driver but I haven't figured out what the problem is yet and it's driving me nuts.
I've had this problem once before but don't recall how I fixed it, it's been a while since then and I have many similar installations since that's not showing this issue.
There's also a Microsoft Connect issue on it that is closed with status "cannot reproduce" - and it's easy for me to reproduce by simply launching IE9. Sometimes, however, the problem appears without me launching IE.
Visual Studio 2010 SP1 on Windows 7 SP1, ReSharper 6.1 and Reflector 7.5.4.20. I've disabled hardware acceleration in VS with no difference, it's an Nvidia Geforce 210 with a dual screen setup with primary screen on the right. Also, the markup shown is not written by me and contains no sensitive information
This seems to be a small hiccup with the dark theme in Visual Studio. It happened to me when I did a system resume with the VS project still open. The solution to this is just restarting Visual Studio. Works like a charm.
It seems it actually helped to update Nvidias graphics driver, even though it was just a few months old and for quite an old and trusted graphics card. Oh well - now I'm happy that the problem is gone, and upset that it was so easy.
Found this be searching for an answer to the same issue.
They way I fix it is to open Tools -> Options and then click on Environment -> Fonts & Colors to reset the coloring for the current buffer.
It appears to be VS is not recoloring the current buffer after locking the screen for at least 4 mins. I believe this to be a bug in the themes handling in VS, but I this is really the only place I could find this mentioned.
Just installed SP1 for VS 2010 hoping that it will help, but it does not.
I faced the same issue with vs2013...
This solved the issue..http://madskristensen.net/post/visual-studio-update-2-and-web-essentials

Visual Studio "No Source Available" and Red Underlines bug, compiles fine

I'm debugging my code in visual studio 10, I press f11 step into my own function (which by the way is in the SAME source cpp file as the current function) and I always get "No source available"!!
Then I tried putting a breakpoint in said function and when I run visual studio it breakpoints and says: "No source available"
I can step over the function but I can't step into it
Another problem that may or may not be related is that every 5 minutes, Visual Studio 10 will suddenly for no reason stop recognizing all of my variables and functions, giving all of them a red underline. It will still compile fine. But the red underlines will say unrecognized variable etc. Then I just right click on one of them, click "go to definition", it brings me to the definition and when I go back to the original window all the red lines have magically disappeared! This does not seem right; forcing visual studio 10 to just take me to the definitions will suddenly make it realize that they exist? Then 5 minutes later the red underlines appear again!
In VS 2010, click on "Project, Rescan Solution". The red underscores go away (for now, at least :o).
The red underscores started appearing a few days ago, two years after I began using VS2010.
With respect to your "No source available", did you by any chance disable debugging info for that particular module? (See "Properties").

Resources