Skip to content

Possible to support variables in settings.json? #43351

@ghost

Description

  • VSCode Version: 1.20
  • OS Version: MacOS 10.13

Would it be possible to have variable support in the settings.json file.

An example of when this could be used:
A popular Java extension is called Lombok. To use Lombok with the Red Hat Java Extension, you have to change some arguments for language server. 2 of those arguments are full paths to the lombok.jar that Maven (Java build system). I work on a Linux machine and a MacOS machine. Maven stores downloaded JARs to ~/.m2. On Linux ~ expands to /home/username, while on MacOS it expands to /Users/user.name. Now if I could use an environment variable in the settings.json file, I could keep the setting platform agnostic in the form of ${env:HOME}/.m2/path/to/lombok.jar

Metadata

Metadata

Assignees

Labels

*duplicateIssue identified as a duplicate of another issue(s)configVS Code configuration, settings

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions