Skip to content

settings.json based on SSH host  #147860

Description

In vscode settings.json, a setting similar to this is possible:

"[python]":  {
    "editor.wordBasedSuggestions": false
},

This applies only to python files.

Let's say I have the following settings.json,

"remote.SSH.remotePlatform": {
        "ubuntupc": "linux",
    },

and I want to apply some settings to the remote.SSH.remotePlatform > ubuntupc scope.

So, something similar to the below would be desired:

"[remotePlatform]": {
  "[ubuntupc]":  {
      "editor.wordBasedSuggestions": false
  },
}

So, for example, I can apply custom css configs (e.g. change the header color based on the host).

Metadata

Metadata

Labels

*questionIssue represents a question, should be posted to StackOverflow (VS Code)triage-needed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions