VSCode plugin & code completion (iSense)

zamek42@gmail.com
Posts: 36
Joined: Sat Dec 02, 2017 7:27 pm

VSCode plugin & code completion (iSense)

Postby zamek42@gmail.com » Wed Oct 15, 2025 11:20 am

Hi All,

Is it possible that VSCode code completion only offers those elements in the list that I have already used, but does not read the header files of glibc and the given environment? I use the Espressif plugin and I am surprised to find that, for example,

Code: Select all

arg_print_syntax(stdout, (void *) &blink_args, "\n");
I want to call it, I press ctrl space after "arg" and it does not offer it, even though at the beginning of the file there is

#include "argtable3/argtable3.h"

If I type it in and recompile it, it offers it, but only that,

Code: Select all

arg_print_glossary(stdout, (void *) &blink_args, "%-25s %s\n");
it does not offer it again until I type it in and compile it. The path to the esp-idf components libraries is set in c_cpp_properties.json:

Code: Select all

"includePath": [
"${config:idf.espIdfPath}/components/",
"${config:idf.espIdfPathWin}/components/",
"${config:idf.espAdfPath}/components/",
"${config:idf.espAdfPathWin}/components/",
"${workspaceFolder}/**"
],
The eclipse plugin reads all the libraries accurately and offers them, but this vscode is not correct and it is very disappointing that the built-in "AI" is so deceptive, even if it is called intelliSense.

Another problem is that, for example, if I want to request code completion for the elements of a struct, typing . after the variable name and pressing ctrl+space will display not only the elements of the struct, but all the elements it matches. The Eclipse plugin does this perfectly as well.

An ESP code contains 500-1500 files, which means about the same number of header files, if there are only 15 names in each file, then this means 7500-22000 identifiers, I don't want to keep that in mind.

I use Gnu Debian Linux 13 and VSCode 1.104.1

bignacio
Espressif staff
Espressif staff
Posts: 255
Joined: Wed May 02, 2018 12:12 pm

Re: VSCode plugin & code completion (iSense)

Postby bignacio » Wed Oct 29, 2025 1:35 am

Already reply on the GitHub issue but for the sake of completion let's reply here too:

This is the documentation for C/C++ configuration on ESP-IDF VS Code Extension

It seems that using the Clang extension achieves better results for many users but you can also use the Microsoft C/C++ extension.

zamek42@gmail.com
Posts: 36
Joined: Sat Dec 02, 2017 7:27 pm

Re: VSCode plugin & code completion (iSense)

Postby zamek42@gmail.com » Wed Oct 29, 2025 7:42 am

Hi All,
The solution is change microsoft c/c++ plugin to Clangd plugin. It works like Eclipse plugin.
In command line: code --uninstall-extension ms-vscode.cpptools

and

code --install-extension llvm-vs-code-extensions.vscode-clangd

Who is online

Users browsing this forum: No registered users and 1 guest