delphi - 快速找到完全限定的单位名称?
问题描述
我喜欢在Uses语句中尽可能使用完全限定的单位名称:
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls;
但我并不总是知道这一点。例如,在介绍了Min()
函数之后,我不知道数学单元的完全限定名称是什么,所以我只是添加了
uses
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics,
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, Vcl.StdCtrls, Math;
是否有快速找到完全限定名称的技巧?
相关: Delphi 中的命名空间,在 Delphi中使用“System.SysUtils”还是“SysUtils”?
解决方案
只需将鼠标光标悬停在单位名称上,例如Math
,在uses 语句中。应出现
带有完全限定单位名称 ( ) 的工具提示。System.Math
推荐阅读
- apache-spark - 处理 Pyspark 数据框中的损坏数据
- makefile - 如何使用带有 gprof 的 makefile 重新编译依赖项?
- php - whereBetween 在 laravel 的两个列上 在 laravel 的两个时间列上
- javascript - 反应js应用程序中带有令牌的firebase重新身份验证流程无法正常工作
- git - 如何推送/创建一个分支,以便它分配给 GitHub 中的问题?
- docker - 如何使用 docker 容器为 vue-cli-plugin-electron-builder 生成的 windows 平台构建应用程序
- pandas - 类型错误:“浮动”对象不可迭代
- php - HTML - PHP - 试图惰性化一个变量
- r - 创建一个闪亮的应用程序来执行数据操作
- python - 如何用python计算拐点?