I woke up in the morning, turned on my computer and launch VS10 and found all the fonts are messed up! I had one type of font and now the code is in a totally different font, not only that but also the windows like the Command Window, Find Symbol results window etc on the bottom of VS, even their fonts are changed. Moreover the code in .cshtml files are highlighted. I've never experienced this before.
Has anyone else experienced this weird issue, and how do I get back my old setting and how do you turn the .cshtml files coding highlighting off.
Thank you,
Ray.
Try 'Tools->Import and Export Settings->Reset All Settings' on the menu.
Related
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.
I'm using VS2010 with ReSharper and "Son Of Obsidian" theme and have the following frustrating highlighting issue in String.Format sections.
Selecting a method (or any) parameter gives the grey background - see string bString in picture. But the highlighting inside the String.Format string is different, and unreadable.
In "Tools > Options > Font and Colors" I've tried: "Selected Text", "Inactive Selected Text" and "Highlighted Reference" both in vain.
So please:
a) What do I need to change
b) Is there a decent way of finding it out (I've tried doing a screen grab for the Hex color code and searching for that in the style XML, but that doesn't work)
After an age of trying this out on my home PC I've discovered the element in question is ReSharper Matched Format String Item
There should really be an easier way of finding this stuff out
It appears your cursor is in an Intellisense Code Snippet field.
Could it be Code Snippet Field?
Paddy's reply pointed me in the correct direction, but my issue was slightly different. I'm going to post my solution here in the hope that it might help others.
I'm using VS2013 and Resharper 8. My issue was that Resharper had not been able to import it's own Font and Colour settings on installation. For me, the Resharper options shown in Paddy's image were not visible. This is a known issue with Resharper installation and the solution is as follows:
1) Close all Visual Studio instances
2) Open C:\Program Files (x86)\Microsoft Visual Studio {VS version}\Common7\IDE\Extensions\extensions.configurationchanged file
3) Type anything there
4) Save the file
5) Open VS and check Fonts and Colors in Tools | Options | Environment
(source)
For me, as soon as I reopened VS, Resharper had been able to import its own settings and the highlighting issue was already fixed without needing any further action from me.
Now, when trying to edit the extensions.configurationchanged file, I also ran in to an "Access is Denied" error message (I'm running Windows 7 as an admin). To overcome this I had to open Notepad as an administrator (Start > right click notepad > Run as administrator) and then use File > Open to open the extensions.configurationchanged file.
I hope this helps people in the future!
My computer crashed while I had VS2010 open, and when I recovered (all I did was reset the computer) and opened visual studio again, all my layout was messed up. Since I had very little customization done, I figured I would just reset the window layout. I tried Window > Reset Window Layout, but that didn't work. I even tried resetting the environment. How can I get back the default layout that I had right after installing?
Specifically, the changes I notice right away are the Solution explorer/etc. group of windows being on the right instead of the left, and the error reporting/output/code definition windows missing from the bottom. I know that I can just fix these things myself, but I don't know what else I am not noticing that has changed, and therefore would like to see everything reset automatically.
I found this which worked: Visual studio forgets window settings and makes a mess
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.
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.