问题
Windows Explorer has a small (but great!) feature that Visual Studio does not:
When you rename a file in Windows Explorer on Windows 7 (for sure, I think for Vista and later) it selects only the main part of the filename, and not the file extension. It makes the assumption that 90% of the time, you don't want to change the file extension and saves you from the choice of using the mouse to select the relevant part to rename (bad) or having to retype the file extension (also bad).
Of course this is only if you have file extensions displayed in Windows Explorer, but if you're browsing Stack Overflow I would make an educated guess you're in the "Show me the extensions" camp.
Is there an extension for Visual Studio that provides this same functionality? Extensions seem to be getting longer and longer. Today we have .cshtml
at 7 characters, who knows what we will have in the future.
As of this writing, I am talking about an extension for Visual Studio 2010. I have not gotten to play with the Visual Studio 2012 Release Candidate yet, so if this feature is baked in there I would accept assurances that I'll get it when I upgrade as an answer as well.
来源:https://stackoverflow.com/questions/11212785/visual-studio-solution-explorer-extension-to-rename-file-but-not-extension