快速查找完全合格的单位名称?

我希望在 Uses 语句中尽可能使用完全合格的单位名称:

uses
  Winapi.Windows,Winapi.Messages,System.SysUtils,System.Variants,System.Classes,Vcl.Graphics,Vcl.Controls,Vcl.Forms,Vcl.Dialogs,Vcl.StdCtrls;

但是我并不总是知道这一点。例如。引入了Min()函数之后,我不知道 Math 单元的完全限定名称是什么,所以我只添加它

uses
  Winapi.Windows,Vcl.StdCtrls,Math;

是否可以快速找到完全限定的名称?

相关:Namespaces in DelphiUse "System.SysUtils" or "SysUtils" in Delphi?

mintz2004 回答:快速查找完全合格的单位名称?

只需将鼠标悬停在单位名称上,例如Math,在带有鼠标光标的uses语句中。
 应该显示带有完全限定的单位名称(System.Math)的工具提示。

,

用我发现的一个窍门回答我自己的问题,但也许还有其他窍门

只需添加“不合格名称”,

uses
  Winapi.Windows,Winapi.Messages,System.SysUtils,System.Variants,System.Classes,Vcl.Graphics,Vcl.Controls,Vcl.Forms,Vcl.Dialogs,Vcl.StdCtrls,Math;

...然后 Ctrl -单击新名称。这将打开Delphi源文件,并将光标置于 unit 语句上:

{*******************************************************}
{                                                       }
{           CodeGear Delphi Runtime Library             }
{                                                       }
{ Copyright(c) 1995-2018 Embarcadero Technologies,Inc. }
{              All rights reserved                      }
{                                                       }
{ Copyright and license exceptions noted in source      }
{                                                       }
{*******************************************************}

unit System.Math;
本文链接:https://www.f2er.com/3052735.html

大家都在问