I was using ReSharper with visual studio 2015 and my pc got really slow because of ReSharper and i had to uninstall it. After uninstallation completed when i opened up my project the only thing i saw was a blank screen like this.
I know that uninstalling ReSharper caused it and i looked and tried to fix it by changing Text Editor options but nothing worked so far. I've also searched about this issue and nothing came across yet.
Thanks
This error is caused by a corrupted Visual Studio cache.
Close all Visual Studio tasks that are running, and delete all files in the folders ComponentModelCache and MEFCacheBackup
these folders are located in:
\Users\YOUR_USER_PATH\AppData\Local\Microsoft\VisualStudio\YOUR_VISUAL_STUDIO_VERSION
In my case the reason, on a VS2013 install, was a temporary glitch in an extension called Productivity Power Tools 2013.
What I did was I disabled it from Tools -> Extensions and Updates. Then I restarted VS, enabled it again, restarted again and bish bash bosh, problem solved.
It's odd because I didn't have to hunt down cache folders to delete, but it did the trick.
While I am sure the other answer is correct, I just restarted my VS 2017 in administrator mode, and it fixed the problem.
In my case the, reason is the Productivity power tools 2013. I went to extension via Tools -> Extensions and Updates and after downloading and installing the extension, I restarted VS, that got it working again!
来源:https://stackoverflow.com/questions/30239417/code-editor-appears-blank