jsonsettingsadobe-brackets

What are the contents of the default brackets.json file?


I accidentally deleted my brackets.json file.

Could somebody with the Brackets Editor open it up, go to Debug, opens the settings file, and paste it into an answer?

Here is the file that Brackets generates for me:

{
  "fonts.fontSize": "12px",
  "fonts.fontFamily": "'SourceCodePro-Medium', MS ゴシック, 'MS Gothic', monospace",
  "linting.collapsed": true,
  "autoSavePrefs.on_save": false,
  "dragDropText": true,
}

Unfortunately, this causes the following message to appear every time I start the editor:

your settings file doesn't contain a valid json file. The file will be opened so you can correct the format. You have to restart Brackets, so the changes affect brackets.

and I'm not sure how to fix it.


Solution

  • JSON doesn't permit trailing commas in object members or array elements.

    If you change "dragDropText": true, to "dragDropText": true your file will become valid JSON and your error message should go away.