简体   繁体   English

如何获取项目范围删除和排序Visual Studio 2010的使用?

[英]How to get project wide Remove and Sort Usings for Visual Studio 2010?

We had the Power Commands for Visual Studio 2008 that add a context menu command that Removed Unused Usings and Sorted Usings for all files in a project/solution. 我们为Visual Studio 2008提供了Power Commands,它为项目/解决方案中的所有文件添加了删除未使用的使用和排序的使用的上下文菜单命令。

How to do the same in VS2010 since this plugin is incompatible? 如何在VS2010中执行相同操作,因为此插件不兼容?

For Visual Studio 2012 just download the "PowerCommands for Visual Studio" extension from the VS gallery to execute "Remove and Sort Usings" for a project or solution : 对于Visual Studio 2012,只需从VS库下载“PowerCommands for Visual Studio”扩展,即可为项目或解决方案执行“删除和排序使用”:

http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99?SRC=Featured http://visualstudiogallery.msdn.microsoft.com/e5f41ad9-4edc-4912-bca3-91147db95b99?SRC=Featured

For Visual Studio 2010 you can download the "Remove and Sort Using"extension from the Visual Studio Gallery. 对于Visual Studio 2010,您可以从Visual Studio库中下载“删除并排序使用”扩展。

http://visualstudiogallery.msdn.microsoft.com/en-us/cb559aa8-d976-4cc2-9754-5a712f985d16 http://visualstudiogallery.msdn.microsoft.com/en-us/cb559aa8-d976-4cc2-9754-5a712f985d16

对于Visual Studio 2013Productivity Power Tools至少在文件的基础上提供此功能,方法是在文件中单击鼠标右键并选择“ 组织使用” - >“删除并排序”

您可以下载PowerCommands for Visual Studio 2008源代码并移植它(可能不是那么难),或者看看ReSharper 4.5

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM