Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Cannot rename files in Visual Studio

I cannot rename files in Solution Explorer any more, and I get no errors/dialogs. It just leaves the file with the original name. This also impacts folders (I can't rename them) and I also cannot cut/paste files & folders. Copy & delete work fine.

I've tried logging devenv.exe and but nothing shows up. I've tried the /ResetAddin, /ResetSettings, /ResetSkipPkgs & /rootsuffix exp switches and they do not help.

However running with /SafeMode rename works fine.

I have tried disabling all the add-ins that I can but that doesn't help. I have turned source control to none, yet that didn't help either.

Update 2 is installed & ReSharper is not installed.


I tried uninstalling Multilingual App Toolkit, CodeMaid & GhostDoc and that solved the problem. Then I reinstalled all of them and the problem didn't turn up again :/
like image 204
Robert MacLean Avatar asked May 15 '14 10:05

Robert MacLean


People also ask

Why can't I rename a file?

When a file or folder is still open, Windows doesn't allow users to rename it. Therefore, you must ensure that no files or folders are open and no apps are running in the background while you're renaming. To do that, simply click on the same file again to open it, and it will take you to the already opened tab.

How do I rename a file in visual studio Solution Explorer?

In Solution Explorer, select the main . ino file, press F2 and rename it to match the name of the project. Close the solution with File > Close Solution. Open Windows Explorer, rename the disk folder.


2 Answers

The Multilingual App Toolkit seems to be the culprit. I had the same issues as the OP, couldn't change file/folder names, move files etc.

I discovered that running Visual Studio 2013 Update 2 with the /SafeMode switch cured the problem temporarily.

Looking for a more permanent solution, I also tried uninstalling and reinstalling Visual Studio, but that didn't fix the problem. But once I removed the Multilingual App Toolkit the problem went away..

[EDIT]

It appears that reinstalling the Multilingual App Toolkit solves the problem too.

enter image description here

like image 135
Walt Ritscher Avatar answered Sep 21 '22 03:09

Walt Ritscher


Actually, you don't have to remove the MAT. Just uninstalling it, then reinstalling it will do the trick AND you will still have the awesomesauce of the MAT http://dotnetbyexample.blogspot.com/2014/06/fix-for-being-unable-to-rename-files.html

like image 34
LocalJoost Avatar answered Sep 17 '22 03:09

LocalJoost