Beware that this post is related to an SDK in maintenance mode
More Info: Consider nRF Connect SDK for new designs

How do you add a file to a project in VSC

 I'm trying to make a template project tidier while waiting for an answer to a question and have removed a load of functions from main to serial.c but VSC is telling me

it can't find functions even though they're there and in  a header file that is referenced from main.c

The new serial.c file is not actually in the project, which is presumably why it's moaning, but I cannot see how to add a file to a project and can find nothing on DuckDuckGo that tells me. You'd expect to right click on the project and add existing file normally.

How do I add a file to a project please?

Related