Skip to main content
Associate
June 22, 2026
Question

Autocomplete (Ctrl+Space) and Indexing Not Working

  • June 22, 2026
  • 1 reply
  • 37 views

TL;DR: Right click your project in Project Explorer, click Properties > C/C++ General > Indexer > Enable Indexer if option is not checked.

 

Hi all,

I have seen other posts in the community about Autocomplete not working with their projects, with fixing the indexing being a possible solution that does not work for many. I have seen that some go to Window > Preferences > C/C++ > Editor > Content Assist > Advanced and enabled “Parsing-based Proposals”. For me, that did not work either, and I could not get any Autocomplete results for the HAL library or any imported APIs/libraries.

However, I finally found a possible culprit when Right-Clicking a HAL_Init( ) call within my code and clicking References > Workspace/Project

A window should pop up and may relay the message “unknown results: indexer is not enabled”).

Window is in top right.

The solution for this lies in right clicking your project in Project Explorer and clicking Properties > C/C++ General > Indexer > Enable Indexer if the option is not checked. Applying this resolved the issue for me.

 

I copied and pasted my project from another one I made and am not sure if it disabled this option in the process, but it was a sneaky one since the project still compiles, executes, and lets you rebuild the index when you need to. Should be something ST should check out.

1 reply

Ghofrane GSOURI
ST Technical Moderator
June 26, 2026

Hello ​@wufl 

Thank you for sharing your workaround on the ST Community.
Could you please specify the IDE version in which this issue occurs as well as your operating system?

To give better visibility on the answered topics, please click on Accept as Solution on the reply which solved your issue or answered your question.
Raymond Buck
Senior
July 17, 2026

Checking Enable project specific settings did not work for my project. The project was generated as a cmake project with STMCubeMX2. I imported it into STM32CubeIDE as a cmake project. Some of the suggested proposals do show up. But none of the GPIO proposals are displayed. 

STM32CubeIDE version 2.1.1
STM32CubeMX2 versipn 1.0.1
 

I imported the same cmake project into Visual Studio Code V1.129.0 and all of the suggested proposals are displayed. That indicates there is a problem with STM32CubeIDE or with some setting that is incorrect. I am using VSCode for my project although I prefer the STM32CubeIDE development tool.