I've lost all the color formatting in the source view in Visual Studio and can't get it back. I tried to import a new scheme but nothing helps.
Anyone?
Had this a while ago, these steps fixed it for me.
close all running instances of Visual Studio
open a "Run" window and type in devenv /resetuserdata
edit
perhaps this might work for you, its for 2012 but it might work for 2013
Here is a simple solution. Go to the directory where devenv is (for 2012 RC), and type devenv.exe /setup. It will fix your problem.
devenv.exe is usually in something like C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE.
Edit: It has been suggested that you do this from the Visual Studio command prompt (Start>Microsoft Visual Studio>Tools>Visual Studio Command Prompt), and/or make sure your command prompt has administrator permissions.
How can I get user type C# syntax highlighting working again in VS 2012 RC?
This did the trick!
devnev.exe /ResetSettings
More details here
Lost formatting in Visual Studio
Related
I am having an issue with my Visual Studio 2010 IntelliSense, which stopped working recently.
It had worked earlier.
I had gone through the following steps
Visual Studio C# IntelliSense not automatically displaying
but that too not worked on my system.
Here I am attaching the screenshot for your reference,
Thanking in advance
This is a known feature/bug (feature with a bug?), which can be resolved by restarting Visual Studio.
It appears, that this behaviour is shown by Visual Studio if you press Ctrl + Alt + Space.
I'd recommend resetting your setting like Dai suggestested, if a VS-retart does not work.
Additional information:
VS2010 Bug: Intellisense shows empty text field and stops working correctly
You can try resetting the visual studio by using visual studio command prompt. take visual studio command prompt and enter this command devenv /resetsettings
When I click on the home-icon of Team Explorer, I get the following error:
Page '312e8a59-2712-48a1-863e-0ef4e67961fc' not found instead of all the options.
I have this error since I reinstalled the Visual Studio 2012 Ultimate trial and installed the Visual Studio 2012 Premium edition. Repair and reinstall didn't work out.
To fix this, run this from the Visual Studio command prompt as administrator:
devenv /setup
It will not mess up your environment, and you can just continue to use Visual Studio afterwards was my experience.
I had the same error in Visual Studio 2013 and tried:
Control Panel → Programs .... → Visual Studio → Repair
It did not work
devenv /setup
It did not work
devenv /clearcache
devenv /updateconfiguration
It did not work
And then THE solution:
*Close all Visual Studio instances
Delete the %LOCALAPPDATA%\Microsoft\VisualStudio\12.0\ComponentModelCache folder
Start Visual Studio
It is explained in more detail in this blog post: When the EditorPackage does not load correctly
I had this error on Visual Studio 2013 Ultimate - Windows 8:
And I solved this problem running this command:
X64: devenv.exe /resetskippkgs
x86: C:\Program Files (x86)\Microsoft Visual Studio 12.0\Common7\IDE\devenv.exe /resetskippkgs
I faced similar issue. Running devenv /setup did not help me.
Just wanted to share some additional info:
At first, devenv /setup did not help me as well. Then I realized that I was using the wrong Visual Studio command prompt version.
Make sure that you run devenv /setup for the appropriate Visual Studio version.
For example: for Visual Studio 2013, use the "Developer Command Prompt" under the Visual studio 2013 "Visual Studio Tools" folder.
*And like it stated in the selected answer, run as administrator.
I ran the suggested command: devenv /setup. It didn´t work for me. (Visual Studio 2015)
Then after that I tried something different:
-> Run Visual studio as administrator, after ran the command.
Then the problem was solved.
Running Visual Studio as administrator resolves this for me.
After I reinstalled my Visual Studio 2012 Trial, I've never deleted the documents directory. In this directory there were some backup files. This maybe have caused the problem.
After deleting this directory and installing Visual Studio 2012 Premium again the problem was solved.
I faced a similar issue. Running devenv /setup did not help me.
I found Fixing 312e8a59-2712-48a1-863e-0ef4e67961fc-not-found-vs-2012. This link suggests that I might have recently installed some Visual Studio extensions, which might have corrupted the Visual Studio maintained cache. I uninstalled a couple of the latest Visual Studio extensions, and it solved the issue after Visual Studio's restart. Visual Studio is able to connect with TFS :-).
One can find Visual Studio extensions at menu Tools → *"Extensions and Updates...". Go to the "All" section under Installed section. It will show all Visual Studio extensions.
I had a similar error, and then I tried running "devenv /setup" and no good result. That's was because you don't not trying with specific version Visual Studio command prompt. I then opened the command prompt for the specific version "Visual Studio 2013", and the problem was solved.
I had the same exact issue in Visual Studio 2013. I renamed ComponentModelCache to ComponentModelCache2, and it fixed it.
C:\Users\{..}\AppData\Local\Microsoft\VisualStudio\12.0\ComponentModelCache
I'm trying to launch Visual Studio 2010 from my desktop and I just get this error box popping up saying "Unknown Error"...
Anyone have an idea why this might happen?
I just fixed it, I uninstalled and reinstalled my version of the .NET Framework (v4.0). And then when I again tried to launch Visual studio it started up without any issue.
Here's some things you can check:
Temporary de-activate all Addins
Temporary disable all Extensions
Check the Event Log for any errors
Reset your settings
Start with /ResetSkipPkgs
Based on your comment below, if you can't find the DevEnv.exe when you have opened a VIsual Studio Command prompt, I would suggest you to re-install Visual Studio as it indicates your installation (paths) are in a bad state.
And here are some other things you migh want to check:
VS 2010 Crashes on Startup with "Unknown Error"
Visual Studio 2010 quit working...now gives me an "unknown error" dialogue when launched
Visual Studio 2010 Startup Errors
Visual Studio 2010 crashes on startup after installing SP1
Open Visual Studio Command Prompt with Administrator permission and type the following,
devenv /ResetSkipPkgs
the Solution of this problem ist very simple.
Install VS 2010 on a other machine and export HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\VisualStudio\10.0 to a file. Copy the file to your target machine and rename the path above to ".old", then double click your exported reg-file and wait a time....
After this my Visual Studio was starting correctly.
The other solution, that people post wont work in my case.
I hope this will help some body.
Enjoy
Sven
I had the same problem.. Instead of completely uninstalling .net framework, I just repaired the .net framework from the repair/uninstall option available in Control Panel of my Windows 7 Ultimate pc. Finally I got another error that, Visual Studio could not create AppData folder in my system. Then, I right click the Visual Studio icon and selected Run as Administrator. This worked for me!! Now, Visual Studio 2010 is working on my pc!! Try this out if you want..
After installing Debugger Canvas and restarting Visual Studio, I get this error for each project when opening a solution:
Project <Name> could not be opened because the Microsoft Visual C#
2010 compiler could not be created. Please re-install Visual Studio.
I tried all of the answers from this question with no luck: Microsoft visual C# 2008 compiler could not be created. Please re-install Visual Studio
So far I have:
Tried the /resetsettings argument
Tried the /ResetSkipPkgs argument
Tried removing the whole key: HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
Any other ideas other than reinstalling VS and/or SP1?
VS Version: 10.0.40219.1 SP1Rel
Thanks!
Open VS command prompt
Run the following command
devenv /resetsettings
Open your Project
After trying everything, I fixed this by reapplying the SP1, without needing to reinstall the whole VS. Hope it helps someone else!
I had a similar problem, but the error message also included "Query Service for { } failed." I tried opening VS with both the /ResetSkipPkgs and /ResetSettings switches, which didn't work. I finally fixed it by deleting the following registry key.
HKEY_CURRENT_USER\Software\Microsoft\VisualStudio
Visual studio will lose all user preferences the next time you start it.
VS2015 - My issue was in the sln file. Reverting to previous revision resolved the issue.
I installed the ReSharper evaluation version and uninstalled it. Afterwards Visual Studio's Intellisense stopped working. I have restarted computer but I still have this problem.
Can anyone please help me here?
I am using Visual Studio 2005. Thanks.
Try opening Visual Studio Command Prompt and entering:
devenv.exe /ResetSettings
Try going to Tools > Options > Text Editor > C# and checking all of the options under Statement completion. I think Resharper disables these upon installation.
Sometimes deleting the ncb file helps. Go to your solution directory and find the sln file, there will also be a file with the same name and the extension ncb. Make sure Visual Studio is closed (at least don't have that project open) and then delete that file. Don't worry Visual Studio will rebuild it for you.
The devenv.exe /ResetSettings was the only thing that worked for me. The full path in command prompt is as follows (for VS 2008)
C:\Program Files\Microsoft Visual Studio 9.0\Common7\IDE>devenv.exe /ResetSettings
took me a while to find so I thought I'd post this to help
devenv /ResetSettings worked after uninstalling ReSharper. I did not have to do a repair. I did verify that the settings were checked under Text Editor > C#, but ResetSettings was the only thing that worked.
You could try to reset your Visual Studio setting by
End Process devenv.exe from Tast Manager if it is running .(It can close your Browser and Visual Studio)
Run devenv /resetuserdata from Start -> Run
Hope It can help you.
Disable updating intelliSense like in this article:
http://amastaneh.blogspot.com/2007/11/disable-updating-intellisense.html
Eventhough for old version seems to work for me.
I would try a "repair" on the installation first. Control Panel, Add/Remove Programs, select Microsoft Visual Studio 2005, click "Change/Remove". It will load up the install dialog and give you the option to do a "repair".
YMMV, but at least it should reset a lot of the VS resources to their "fresh" state.