You can find and replace text in the Visual Studio editor by using Find and Replace (Ctrl+F or Ctrl+H) or Find/Replace in Files (Ctrl+Shift+F or Ctrl+Shift+H). You can also find and replace only some instances of a pattern by using multi-caret selection.
This exact thing happened to me. Do you have ReSharper? If so, the solution I found here may work for you. From Alexander's comment in the accepted answer:
Try cleaning R# caches C:\Users{User Name}\AppData\Local\JetBrains\ReSharper\v8.2\SolutionCaches\ and then reopen the solution
From below comment - that's %userprofile%\AppData\Local\JetBrains\ReSharper\v8.2\SolutionCaches
for those that want to Win+R.
From comment below, another possible location:
%userprofile%\AppData\Local\JetBrains\Transient\ReSharperPlatformVs12\v02\SolutionCaches
Update - Another Easier Option:
You can also go to ReSharper option, Environment/General, click on Clear Caches and restart Visual Studio – Chin Feb 27 at 2:02
I had this same issue today (couldn't even edit brand new files), but it turned out to be due to the "Source Control Plug-In". I use AnkhSVN and performed an update when prompted yesterday. For whatever reason this left me unable to edit any file types besides JSON. Here are the steps I went through to fix it:
I was able to edit files again after this.
Simply delete your all temp files from the temp
folder.
Note: Before deleting the temp files, close Visual Studio.
To delete temp files:
%temp%
in the text box.Now you will see your all temp files. Just press Ctrl+A to select all files in the temp
folder. Now delete all of them. some files will not be deleted. Just skip them.
Now open your Visual Studio and try to edit syntax. I hope it will work now!
Are the files in question read-only? That might explain why you can't change them.
I'm not familar with SVN, but in some source control systems, you have to check-out a file before you modify it.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With