VS Code. How to open JSON settings with defaults

前端 未结 3 888
轻奢々
轻奢々 2021-01-30 22:43

When I\'m opening settings using Preferences: Open Settings (JSON) I\'m getting screen like this:

But in VSCode videos/tutorials I see people

3条回答
  •  北海茫月
    2021-01-30 23:15

    How to Get to the JSON settings in Newer Versions of VS Code

    In the latest versions of VS Code, you can convert back to the split JSON settings editor by changing the following settings in the (now standard) UI settings editor:

    1. Workbench > Settings: Editor

      • Change from UI to json
    2. Workbench > Settings: Use Split JSON

      • Checkmark to enable the option

    after making this change, VS Code will open its settings as a JSON file, like in older versions of the application, rather than in the new UI. This allows you to make the changes that other answers provide, directly in the JSON (if you can find the right place and file to make them in..)


    NOTE: Whether or not you actually want to use the JSON settings is a different question. Most of the time, the settings search function allows finding the same settings in the new UI. Sometimes it is difficult to get search to work though, especially if the settings are worded differently in the new UI style. There may also be cases where extensions haven't been updated to accommodate the new UI setting style, and so there is no option but to enter the JSON directly.

提交回复
热议问题