vs c#移除不必要的using引用及排序以及把System引用放最前面

阅读 67

2022-08-22


在代码编辑器文本窗口任何位置右键单击,在快捷菜单中找到Organize Usings,然后点那个 Remove and sort.

如果要把Sytem命名空间的放在最前面,按照如下方法:

From Tools Menu, Navigate to Options –> Text Editor –-> C# –> Advanced.  In the Advance options select the 
“Place ‘System’ directives first when sorting usings” check box.

精彩评论(0)

0 0 举报