Any tool to suggest unit reference automatically for Delphi 2010?

后端 未结 6 1728
星月不相逢
星月不相逢 2021-02-05 09:44

MS Visual Studio has a great feature: it automatically suggests the units to add in using clause when you typing the code with refrences to absent standard classes.

6条回答
  •  半阙折子戏
    2021-02-05 10:46

    If the unit which contains the reference is not yet in the uses list, this is how I save many manual steps:

    • right-click on the underlined (error-insighted) text
    • choose “Refactoring | Find Unit…“.

    A dialog will present the available unit which contains the unknown type or symbol, and a mouse click adds the selected unit to the uses list of the current file.

提交回复
热议问题