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

Viewed 1244

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?

2 Answers

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",
    }

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