You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support relative paths in settings.json/c_cpp_properties.json without using ${workspaceFolder} #2397
Currently, most settings require using ${workspaceFolder} to use relative paths...we could simplify the experience by using implicit relative paths. +1 this if anyone particularly wants this.
I'm interested in having the ability to use a relative path for compilerPath. Specifically, a path relative to the VSCode installation.
One use case: A portable package of VSCode and a compiler.
I'd like to be able to use: "C_Cpp.default.compilerPath": "..\\gcc\\bin\\g++.exe"
or: "C_Cpp.default.compilerPath": "${execPath}\\..\\gcc\\bin\\g++.exe"
If there's a way to do that with the current extension, please tell me how to do that, thanks.
changed the title [-]Support relatitve paths in settings.json/c_cpp_properties.json without using ${workspaceFolder}[/-][+]Support relative paths in settings.json/c_cpp_properties.json without using ${workspaceFolder}[/+]on Dec 22, 2020
Activity
m417z commentedon Dec 21, 2020
I'm interested in having the ability to use a relative path for
compilerPath. Specifically, a path relative to the VSCode installation.One use case: A portable package of VSCode and a compiler.
Say I have a disk-on-key with:
I'd like to be able to use:
"C_Cpp.default.compilerPath": "..\\gcc\\bin\\g++.exe"or:
"C_Cpp.default.compilerPath": "${execPath}\\..\\gcc\\bin\\g++.exe"If there's a way to do that with the current extension, please tell me how to do that, thanks.
[-]Support relatitve paths in settings.json/c_cpp_properties.json without using ${workspaceFolder}[/-][+]Support relative paths in settings.json/c_cpp_properties.json without using ${workspaceFolder}[/+]bobbrow commentedon Jun 26, 2025
This was implemented a while ago, not exactly sure when.