sorin
sorin

Reputation: 170846

How can I add a keyboard shortcut to open settings.json on vscode?

I find myself in need of having touch the settings.json quite often and the manual approach is extreamly annoying as there is no directly visible link in the settings dialog.

Is there a way to create a shortcut that opens the files directly?

Upvotes: 2

Views: 2290

Answers (2)

anesboz
anesboz

Reputation: 472

The commande that you're searching is : workbench.action.openSettingsJson

So to open Setting directly with a keyboard shortcut put this in your keybindings.json :

    {
        "key": "ctrl+k s",
        "command": "workbench.action.openSettingsJson",
    }

Upvotes: 2

alexzshl
alexzshl

Reputation: 1127

  1. Keyboard Shortcuts: openSettingsJson
  2. Command Palette: open settings (JSON)
  3. There is a icon in the upper-right corner of settings(UI)

Upvotes: 2

Related Questions