Skip to content

How to use variables in user preferences (settings.json)? #2671

Discussion options

You must be logged in to vote

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…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by dest4590
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
user-question End-user question that isn't extension development related
2 participants