【发布时间】:2010-11-10 17:10:04
【问题描述】:
在我的代码中,我经常添加一些导入语句,例如:
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;
在开发过程中,其中一些导入语句可能变得不必要,因为我移动了需要这些导入的代码。在 Eclipse 中,IDE 会标记未使用的导入,但在 Visual Studio 2010 中我找不到任何提示。我怎样才能检测到它们?
【问题讨论】:
-
如果您对为什么未使用的使用没有警告感兴趣 - 这是 Eric Lippert 关于该主题的博客文章 - blogs.msdn.com/b/ericlippert/archive/2010/01/25/…
标签: visual-studio visual-studio-2010