How to use variables in user preferences (settings.json)? #2671
-
I wanted to configure MCP server to work in all workspaces, but if I put there the variable I googled about it, even asked ChatGPT but found nothing, thanks to those who can help with this! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @dest4590 , Variable substitution is intended mostly for Debugging and Task configurations, and a few selected settings, as documented https://code.visualstudio.com/docs/reference/variables-reference#_predefined-variables and https://code.visualstudio.com/docs/reference/variables-reference#_is-variable-substitution-supported-in-user-and-workspace-settings. So, I don't think your scenario is fully supported yet. There is already an open issue in the VS Code repo, asking for something like your need (microsoft/vscode#2809), so I would suggest you to upvote and add comments, if you think your scenario has something different to add. BTW, for future requests about VS Code usage, please use the VS Code repo. This discussion repo is for extension development only, for now. Hope this helps. |
Beta Was this translation helpful? Give feedback.
Hi @dest4590 ,
Variable substitution is intended mostly for Debugging and Task configurations, and a few selected settings, as documented https://code.visualstudio.com/docs/reference/variables-reference#_predefined-variables and https://code.visualstudio.com/docs/reference/variables-reference#_is-variable-substitution-supported-in-user-and-workspace-settings. So, I don't think your scenario is fully supported yet.
There is already an open issue in the VS Code repo, asking for something like your need (microsoft/vscode#2809), so I would suggest you to upvote and add comments, if you think your scenario has something different to add.
BTW, for future requests about VS Code usage, please use…