我想知道ReSharper是否可以运行每个类并删除未使用的使用?我看了,但我没有在R#4.5中看到这样的选项.有没有人在Resharper中看到这个只是能够删除单个类中的使用?
在Visual Studio 2019中,如何删除未使用的格式化文件?
我找到了Visual Studio早期版本的说明(转到工具>选项>文本编辑器> C#>代码样式>格式。)。我在Visual Studio 2019中看不到它。
在我的代码中我经常添加一些导入语句,例如:
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;
using System.Windows.Threading;
Run Code Online (Sandbox Code Playgroud)
在开发期间,这些import语句中的一些可能变得不必要,因为我移动了需要这些导入的代码.在eclipse中,未使用的导入由IDE标记,但在Visual Studio 2010中我找不到任何提示.我怎么能检测到它们?