Reputation: 161
I recently upgraded to Visual Studio 2015. There are many things that I like about it, but one thing that I don't like is that when you hit F2 to rename a file in the solution explorer it now highlights the full name with the extension. Is there anywhere any settings to make it so that it only highlights the name like it did in 2013?
Upvotes: 6
Views: 1583
Reputation: 91
I had the same issue with one specific solution and Visual Studio 2013. It seems problem can be solved by simply deleting .suo
file (you can find it in the same directory as .sln
file).
Note that .suo
file stores your user-specific settings for the solution, so after deleting it you'll lose previously opened tabs, selection for startup project and some other stuff, but nothing really important. Visual Studio will recreate this file next time you open the solution.
Update:
In case of Visual Studio 2015/2017 you have to delete the folder .vs
instead.
Upvotes: 6
Reputation: 96
We have an active bug right now that we're looking to fix. I've shared these details with the dev who is looking into fixing this so we're not sure right now why this is working for some and not for others. Stay tuned...
Thanks! Cathy VS IDE Team
Upvotes: 4
Reputation: 37099
I have Visual Studio 2015 Community Edition and F2 just highlights the file name without extension. This is not an answer to your question, but thought it would help you recognize that not all Visual Studio 2015 installs/upgrades have that issue - and this was too long for a comment. Mine was a fresh install. Have you tried disabling extensions, restarting VS and trying rename again?
Upvotes: 2