IDE 2.3.2 Autocomplete Vars

I'm using the Desktop IDE on my Mac M2. I have Autocomplete turned on.
It DOES offer autocompletion for code.
My question is this. It doesn't offer autocomplete for declared variables only functions.
Is it supposed to, or is it capable to offer Auto suggestion for variables as well?

Probably not.
Press F1, then select "Preferences: Open Settings (UI)" and there you can find (too) many options for the editor.

Yup, I looked there and didn't see anything for that option.
I'm used to Autocomplete also offering variables in other IDE settings (JetBrains) and I kinda miss it here.
Maybe they will add that some day as well?

Is this the sort of thing that you are looking for ?
image

image

Yes, that is what I am looking for.

The screenshot is from Arduino IDE 2.2.1 and I would expect later versions to behave in the same way

Why such an old version ? It is version 2.3.2 at the moment.

I noticed that I had the "Editor Quick Suggestions" in the Preferences turned off. NaplesDave, can you check that ?
menu: File / Preferences... / Editor Quick Suggestions

Koepel...I did have that turned on. I opened an older sketch and played around a bit and it works as shown by UKHellBob. I opened a NEW Sketch and tried it and it did NOT work...right away. I tried several different variables and One thing I noticed is that I was using the Light THEME and it makes it very hard to see the letters in the editor popup. After SAVING the sketch and experimenting a bit and I changed the THEME to HIGH CONTRAST, it seems to be working better now. I'm not convinced that it works right away when in a new sketch though. I've been testing it and I am getting mixed results. So I guess I am good now. Thank you all.

1 Like

Lethargy and distrust of "progress"

That happens quite commonly to me. The IDE has to build a list of symbols for the Auto Complete to work and I have never got to the bottom of what triggers that process. When it does happen there is a message bottom/left of the IDE window indicating that it is happening

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.