Настройки VScode. json показать ошибку "Ожидается конец файла" - PullRequest
0 голосов
/ 06 февраля 2020

Этот код соответствует моим настройкам VScode. json. но я не знаю, почему он показывает "End of file expected" jsonc(0) [5, 1]

начало, я просто хочу ввести int на моем терминале. но это не может, поэтому я открываю Run in Terminal 'v' Запустить ли код в интегрированном терминале. и выдвиньте 'Failed to write user settings. Please turn it on to correct any errors / warnings and try again.'

и попробуйте установить конфигурацию кода запуска, выберите снова запустить в терминале 'Failed to write user settings. Please turn it on to correct any errors / warnings and try again.'

{
    "files.autoSave": "onWindowChange",
    "editor.quickSuggestionsDelay": 60
}
{
    // Controls if quick suggestions should show up while typing
    "editor.quickSuggestions": {
        "other": true,
        "comments": false,
        "strings": false
    },

    // Controls if suggestions should be accepted on 'Enter' - in addition to 'Tab'. Helps to avoid ambiguity between inserting new lines or accepting suggestions. The value 'smart' means only accept a suggestion with Enter when it makes a textual change
    "editor.acceptSuggestionOnEnter": "on",

    // Controls the delay in ms after which quick suggestions will show up.
    "editor.quickSuggestionsDelay": 10,

    // Controls if suggestions should automatically show up when typing trigger characters
    "editor.suggestOnTriggerCharacters": true,

    // Controls if pressing tab inserts the best suggestion and if tab cycles through other suggestions
    "editor.tabCompletion": "on",

    // Controls whether sorting favours words that appear close to the cursor
    "editor.suggest.localityBonus": true,

    // Controls how suggestions are pre-selected when showing the suggest list
    "editor.suggestSelection": "recentlyUsed",

    // Enable word based suggestions
    "editor.wordBasedSuggestions": true,

    // Enable parameter hints
    "editor.parameterHints.enabled": true,
}

Ответы [ 2 ]

0 голосов
/ 06 февраля 2020

Удалить } {

{
  "files.autoSave": "onWindowChange",
  "editor.quickSuggestionsDelay": 60, // add comma to end here
// } --<  remove this -----------------------------------------
// { --<  remove this too -----------------------------------------
 ..... rest is good
0 голосов
/ 06 февраля 2020

Я не знаю. перед тем как удалить после [5, 1]. Это будет нормально.

...