Visual Studio Solution Explorer extension to rename file but NOT extension?

孤街浪徒 提交于 2020-01-15 05:46:06

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!