且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何使用名称空间删除未使用的

更新时间:2023-02-17 14:34:25

是的,您可以右键单击页面,然后从菜单中选择;

Yes you can right click on the page and from the menu select;

Organise Usings > Remove Unused Usings

或者,如果您更喜欢快捷方式,请使用;

Alternatively if you prefer shortcuts, please use;

Ctrl + R + G

我一直在使用它来清理代码,并使代码编译更快.

I am using this all the time, to clean up code, and make code compilation quicker.

或者您可以使用 PowerCommands 删除未使用的整个项目

Or you can use PowerCommands to remove unused usings for entire projects