简体   繁体   中英

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.

How to do the same in VS2010 since this plugin is incompatible?

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 :

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.

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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