如何“自动”从使用条款中删除未使用的单位? [英] How to "automatically" remove unused units from uses clause?

查看:195
本文介绍了如何“自动”从使用条款中删除未使用的单位?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有人知道一个可以自动检测/删除使用条款中不需要的单位的实用程序吗?



最好可以在单位和/或项目中重新运行。



2010年。



提前感谢。

解决方案

尝试使用使用单位清洁向导从 CnPack ,您可以从 here



alt text http://i46.tinypic.com/30uts89.png



另一个选项是使用 ICARUS


ICARUS是Pascal
分析器的一小部分。它解析Delphi或Borland
Pascal源代码,并在
中生成
不需要的单元引用列表您的用途列表


alt text http://www.peganza.com/images/IcarusScreen.jpg


Does anyone know of a utility that can will automatically detect/remove unrequired units from the uses clause?

Preferably it can be run againt a unit and/or a project.

Preferably free and works with Delphi 2010.

Thanks in advance.

解决方案

Try using the "Uses Unit Cleaner" Wizard from CnPack you can download from here

alt text http://i46.tinypic.com/30uts89.png

Another option is use ICARUS.

ICARUS is a small subset of Pascal Analyzer. It parses Delphi or Borland Pascal source code and generates a list of unneeded unit references in your uses lists

alt text http://www.peganza.com/images/IcarusScreen.jpg

这篇关于如何“自动”从使用条款中删除未使用的单位?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆