cancel
Showing results for 
Search instead for 
Did you mean: 

I can't see .cyh files in Visual Studio Code but I can in STMCUBEIDE

CamiloRJ9
Associate II

Hello community, I have recently used an open source project with STM32 LoRaWAN but I have a certain doubt when opening the project in the STM32CUBEIDE environment I can see the corresponding files, make modifications, compile and run correctly but they appear in the following way with a kind of link icon:

CamiloRJ9_0-1740577041316.png

But when I open the same project for reasons of my own convenience in Visual Studio Code, these files do not appear, nor do they appear in my file search engine, I have not been working in this STM32 environment for a long time:

CamiloRJ9_1-1740577133708.png

I would appreciate any information and solution on how I could view and edit them in Visual Studio Code, since also if I try to do a git add the files do not appear either, I am attentive, thank you very much.

1 REPLY 1
Sarra.S
ST Employee

Hello @CamiloRJ9

The link icon you see in STM32CubeIDE means that these resources are not physically located in the project's directory but are referenced from another location on your filesystem, likely you're using some shared libraries. 

You should locate these files (from CubeIDE, you can click on one of the linked files and select "Properties" > Resources, and find the path) 

In VS Code, you can add the directory to your workplace, just go to "File," then "Add Folder to Workspace," and select the folder where these files are stored.

Alternatively, you can include the paths to these files in the c_cpp_properties.json file.

Hope that helps! 

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.