Search code examples
delphidelphi-xeota

How I can add some items to the code completion combobox of the Delphi IDE


I'm working in a Delphi IDE expert and I wonder if it's possible add new items to the code completion combobox displayed by the Delphi IDE when the user press CtrlSpace

UPDATE: What I need is add items to the code completion list based in a specified type.

example suppose which I have a type called TMytype, what I want to do is add addional items to the code completion list when the user type a variable of the type TMytype

check this image

enter image description here


Solution

  • I found your question somewhat confusing but if you are in search of credible source on "Custom Live Templates" and the like on Delphi, head to the blog of Cary Jensen here.

    Edit:

    Looking forward to further improvement of the scope of the question, I suggest here another direction to explore:

    • Source code manipulation using IOTAEditor, IOTASourceEditor, IOTAEditReader and the like
    • Some Parsing for sanity check prior to apply any modification.
    • Adoption of Client DataSet as a format to store data (It's serializable) to simplify the coding of IDE editors.