I want to use autocomplete but it doesn't work.
Just update your IDE. The Arduino IDE 2+ comes equipped with this tool. the last version is available on Arduino.cc website.