VS Code. How to open JSON settings with defaults

前端 未结 3 889
轻奢々
轻奢々 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:12

    Not sure what do you mean by "Default".

    steps to open setting by keyboard are:

    1. press Ctrl+p (an input command line would appear at the top.)
    2. press > A List will appear like that in image. (search preference for all vs code settings)

    0 讨论(0)
  • 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.

    0 讨论(0)
  • 2021-01-30 23:31

    As mentioned @Juraj Kocan in comments, it happens after last VS Code updates.

    This is Github issue related to this new "feature"

    This one helped me:

    "workbench.settings.useSplitJSON": true,
    "workbench.settings.editor": "json",
    
    0 讨论(0)
提交回复
热议问题