Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom Variables Support In Workspace Settings #70710

Open
angelhdzmultimedia opened this issue Mar 18, 2019 · 7 comments
Open

Custom Variables Support In Workspace Settings #70710

angelhdzmultimedia opened this issue Mar 18, 2019 · 7 comments
Labels
config VS Code configuration, set up issues feature-request Request for new features or functionality
Milestone

Comments

@angelhdzmultimedia
Copy link

Feature Request

Custom variables support in workspace settings.

Example

{
    "workbench.customVariables": {
        "themeColors": {
            "darkColor":  "#121212"
        }
    }

    "workbench.colorCustomizations": {
        "[Monokai Light Theme]": {
            "tab.activeBackground": "${themeColors.darkColor}"
        }
    }
}

@vscodebot vscodebot bot added the themes Color theme issues label Mar 18, 2019
@isidorn isidorn added the feature-request Request for new features or functionality label Mar 19, 2019
@isidorn isidorn added this to the Backlog milestone Mar 19, 2019
@isidorn
Copy link
Contributor

isidorn commented Mar 19, 2019

This is a feature request, but we do not have it on the current plan. Thus adding feature request and assigning to backlog.
fyi @alexr00 @aeschli

@bpasero bpasero changed the title [Feature Request] Custom Variables Support In Workspace Settings Custom Variables Support In Workspace Settings Oct 10, 2019
@bpasero bpasero added config VS Code configuration, set up issues and removed themes Color theme issues labels Oct 10, 2019
@wonson
Copy link

wonson commented Feb 28, 2020

@isidorn Any updates?

Can the "inputs" in task.json apply in settings.json as well?

@isidorn
Copy link
Contributor

isidorn commented Feb 28, 2020

No updates.
And no varaible substition is not supported in settings.json

@mingp
Copy link

mingp commented Apr 20, 2021

This would be very useful for us as well.

As a different use case, our team wishes to check in a shared VS Code workspace config. We have a repo, whose structure is consistent, but which might be checked out at different locations by different team members. What we would like to be able to do is define a variable, in terms of e.g. ${fileDirname}, corresponding to the project root, and then define our other paths in terms of that. At present, we are having to repeat ${fileDirname}/../../<snip> everywhere.

@fquinsol
Copy link

This would be a really useful feature for the use case brought forward by @mingp .
The work around would be to relay on environment variables, but there is no way to provide default values that would work for most people in the team.

@alexchandel
Copy link

This would be extremely useful. Linting some projects requires providing absolute include paths (e.g. any modern Perl).

@gjsjohnmurray
Copy link
Contributor

Related to #2809

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
config VS Code configuration, set up issues feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

8 participants