Disable VSCode prompt: “Do you want to save your workspace configuration”?

前端 未结 4 682
野性不改
野性不改 2021-02-07 23:42

Using the latest, released version of VSCode, at the time of this writing (2018-Jan-29; version 1.19.3), I see the following behavior (which is unnecessarily time-consuming, for

4条回答
  •  谎友^
    谎友^ (楼主)
    2021-02-08 00:08

    I solved this issue by adding following in keybindings.json -

      {
        "key": "cmd+w",
        "when": "!editorIsOpen && !multipleEditorGroups",
        "command": "workbench.action.quit"
      }
    

    Normally, cmd+w will close the editor window (with checks for unsaved as well), and when no editor window is open, it quits the app.

提交回复
热议问题