Visual Studio colors not loaded correctly - visual-studio

I use a custom color scheme in Visual Studio (black background, gray text, etc.). There a few settings that refuse to change, however. For example, when cursoring through the markup for an aspx page, the current tag defaults to black text, which doesn't work well on my black background. I've previously changed the appropriate setting to a "visible" color. In fact, to fix it, all I have to do is open the Options window, check and uncheck the Bold setting on Plain Text and hit OK, and now all my chosen settings are properly loaded. If I open a new session though, I have to go through these steps again. There are only a few settings where I notice this behavior (the Read-Only Region is another one), but it's annoying to have to do a dummy option change to get them to kick in. Has anyone seen this behavior before, and does anyone have a fix/workaround?
UPDATE: Found an interesting fix. I still don't know what the root cause is (probably some corruption as #sliderhouserules suggessts), but I've got a quicker way to fix it than using Tools | Options | Fonts and Colors. I simply exported my current color settings and created a macro to load them in:
Public Sub ImportColors()
DTE.ExecuteCommand("Tools.ImportandExportSettings", "-import:""C:\Documents and Settings\gregf\My Documents\Visual Studio 2008\Settings\FontsAnColors_Exported-2008-12-05.vssettings""")
End Sub
I then mapped that macro to a button on my toolbar. Now I have a one-click fix whenever my colors go awry. Not ideal, but much less painful now.

Sounds to me like you may have some corruption in your VS install or something (IE you need to reinstall VS). This doesn't sound like a bug, and you'd be fishing in the dark trying to repair your registry or whatever config files are involved in setting and storing these options for VS.

Related

Dark Theme uses wrong font colour in options

I've already done some searching on this, but to no avail, and it's driving me insane.
I use the dark theme in VS 2013, and I have a selection of add-ons installed that change how the text is displayed in some circumstances. The two that immediately spring to mind are ReSharper (v9) and VS Commands.
The issue I have is that whenever I go into the VS options, or even ReSharper options, I'm greeted with some dark text, and some light text, which actually makes using the options extraordinarily difficult, as shown here:
If anybody knows what's causing this, or how to fix it, I'll be eternally grateful. I've tried resetting the font colour settings, but nothing seems to be touching it. I don't particularly want to reset all of my VS settings, so I'm holding off on that in the hope that somebody can point me in the right direction.
Update (21 Aug 15):
I've noticed today that my ReSharper options appear to be correct when I open Visual Studio initially - not opening via a solution file. As soon as I open a solution, the colours change to how they are in the screenshot. It doesn't appear to matter what solution I open, but as soon as a solution is opened the problem presents itself again.

How do I change even line background colours in Visual Studio?

I find the dark theme much easier to concentrate in, but I think I mucked something up a while ago and it turned the dark theme text editor into a monstrosity:
I tried clicking reset to defaults in this menu:
But it appears that that menu does not control this specific part because it did not change it back (Or god forbid it's supposed to look like this)
Does anyone know the solution for this?
It looks like you have an extension installed that is providing that coloring. Go to Tools->Extensions and Updates and check if there's anything about alternating line colors (perhaps this extension), and disable or uninstall it.

Lock down placement of panes from Visual Studio

Ok, if you're like me, you've accidentally dragged one of the many, many panes in Visual Studio around and spent some tedious time getting things back in order again.
Is there any way to lock down all the panes in Visual Studio so they cannot be dragged and placed elsewhere ?
When you have your pane layouts (as well as your fonts, toolbars, colour schemes and whatnot) the way you like them, export your settings (Tools, Import and Export Settings) and give the file a sensible name. Then if you have a spot of accidental dragging, just import your saved ones. This is better than Reset Layout if your preferred layout is not the default.
As far as I know, no. But everything for getting for working with tabs and tab groups is inside the "Window" menu item in VS. But if you want to reset everything back to the way it was why not try:
Window -> Reset Windows Layout
You might also want to check out this Arranging and Using Windows in Visual Studio, I think you might be able to create a workspace, save it and if needed reset back to it after you moved windows around.
Export your settings according to Mar's answer and then check out this extension:
http://visualstudiogallery.msdn.microsoft.com/a79072f7-3109-44a0-95c0-9c50e729d6a3
A real lifesaver :)
Feature request on User Voice:
Lock/Unlock Docked Window Layout
You can reset Visual Studio windows back to the default by going to Window->Reset Window Layout (Visual Studio 10). Other versions have something similar. This helps the tedium on dragging the windows back in order.

What is the name of this colour scheme element?

I have an annoying problem with Visual Studio highlighting. I installed my favourite colourscheme (zenburn 2010), and I have found that when I'm in debug mode, this will happen when my application is paused:
I have run through the hundred or so colours in the settings window, but I am unable to locate the setting that will affect this background colour. It's not exactly a show-stopper, but I'd still really like to know how to solve this.
I have resharper installed in case that affects anything. I can't see how it would though.
I think you want either the Collapsible Region element, or the Selected Text element
Changing the background color of the Read-Only Region element solved the issue for me. (See this article for more detail.)

Visual Studio 2008 Window layout annoyance

I'm having a weird issue with Visual Studio 2008. Every time I fire it up, the solution explorer is about an inch wide. It's like it can't remember it's layout settings.
Every un-docked window is in the position I place it. But if I dock a window, it's position is saved, but it's size will be reset to very-narrow (around an inch) when I load.
I've never come across this before and it's pretty annoying. Any ideas?
The things I've tried:
Saving, then reloading settings via Import/Export.
Resetting all environment settings via Import/Export.
Window -> Reset Window layout.
Comination of rebooting after changing the above.
Installed SP1. No improvement
none of which changed the behaviour of docked windows. (Also, definitely no other instances running..)
I do run two monitors, but I've had this setup on three different workstations and this is the first time I've come across it.
I had the same problem. It turned out that if the VS window was non-maximized, it was really
small. So after making the non-maximized wider, the problem disappeared.
I occasionally get this bug, and others related to layout/fonts/colouring etc. A little trick I've found is use the Tools -> Import and Export Settings, export your current settings once you've got everything setup as you like, then close and reopen Visual Studio and import. Hopefully that'll sort you out.
In 2005 there were some little bugs with viewing Project/Solution property panels when the Solution Explorer wasn't in its default position, docked on the left of the screen - I don't know if that's changed in VS2008, but you might want to put it back there and see.
Now, when are we going to get decent MultiMonitor support?!
Maybe you're closing Visual Studio while some other instance is still alive. The settings of the last instance that is closed is the one that will be applied.

Resources