Any tool to suggest unit reference automatically for Delphi 2010?

后端 未结 6 1725
星月不相逢
星月不相逢 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条回答
  •  萌比男神i
    2021-02-05 10:27

    CNPack Input Helper can sugest and autocomplete units (sorry for another answer, but I can't comment other).

    CNPack unfortunately don't auto-add units from place of code input but you can:

    • Copy a word from cursor place (CNPack->Editor enchancements->Tabset/Button->Clipboard operations->Cut/copy token...).
    • Eventually search this word in source files (grep) to identify unit.
    • Use CNPack->Toggle Uses/Include Field (Ctrl+u) and start typing and use CNPack->Input Helper sugestion/autocompletion, or IDE/GExperts/CNPack use unit future
    • Back to place of code edition

提交回复
热议问题