Adding C file to sample project in VSCode

Hi

I am working with a sample project (Bluetooth: Peripheral UART) for nRF5340DK in VSCode.

So I have installed the nRF Connect extension.

When I view the currently selected application, under Source Files > Application, there is one file listed: main.c

I tried to add a second .c file.

To do this, I selected from the top menu, File > New File, and entered the new name for a .c file.

The file was createdin the project's src folder, but is not visible in the project tree in VSCode, and does not seem to be included in the project.

Can you tell me what I am doing wrong please.

Regards

Garrett

Related