Hi, I'm trying to configure my VScode project for the nrf5340dk using the nrfconnect sdk to be more version control friendly and require less interactions to set it up. I have these things in my .vscode/settings.json:
{ // use variables to avoid hardcoding user home path "nrf-connect.topdir": "${userHome}/ncs/v2.0.0", "nrf-connect.applications": ["${workspaceFolder}/app"], "C_Cpp.default.configurationProvider": "nrf-connect" }
While I understand that officially, VSCode doesn't resolve variables for settings files, is it possible to add support for them specifically in the nrfConnect VSCode extension, I believe the Python extension has some support for it? If not, what's the recommended way to configure the project in a way that's version control friendly? Right now users will have to manually select the location of the SDK on first clone and it would be nice if those are configured to avoid having to do the manual work.
An alternative is to install the SDK to a global known location is like /opt/ncs, however, this one is also a bit cumbersome since I don't know of a way to to install the toolchain without launching the entire nrfconnect desktop app as root and the manual install flow doesn't seem to give the same results since it uses the zephyr upstream toolchain instead of the Nordic one.