How can I add uses automatically? lazarus / 9-Editor ---------------------------------------------------------------------- loaded · 2021-08-18 12:07 Hi All, In the example code below, I know the relevant definitions and can run the code by manually typing in the uses section. Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i var  ExchangeStream: IStream; // add manuel uses types  FPngstream: TOleStream;  //add manuel uses comobj Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i URLOpenBlockingStream If I didn't know that the definition related to is registered in the urlmon, is there a way I can automatically add the relevant uses ? ---------------------------------------------------------------------- balazsszekely · 2021-08-18 12:26 Hi loaded, Did you try Cody: https://wiki.freepascal.org/Cody? Especially the "Unit/Identifier Dictionary": https://wiki.freepascal.org/Cody#Unit_.2F_Identifier_Dictionary. ---------------------------------------------------------------------- loaded · 2021-08-18 17:11 Thank you very much GetMem for your reply. Firstly I was expecting a shorter path like F1 or F3. I didn't know about Cody, good to know. We're going to do some experimenting now.