Sublime Forum

Fix tab auto complete - Error trying to parse settings: Unexpected trailing characters in Packages\User\Preferences.sublime-settings:6:2

#1

Going by the instructions:
https://www.sublimetext.com/docs/3/auto_complete.html

Says to paste on the right pane, which I did, but it gave the error:

I tried pasting inside the brackets, please just tell me what I did wrong.

And why the instructions don’t make it clear on how to apply this? (It should assume people are dumb, which I am)

Thanks

0 Likes

#2

The short version is that the line needs to be between the braces and separated from the other settings with a comma; if you check the bottom right of the window you’ll see that the file is a JSON file, so it needs to be valid in order to be loaded.

The JSON parser in Sublime is slightly more lenient in that it allowed comments, and it’s not sensitive to the last item in a list or object having a trailing comma.

This video covers this particular problem and how to solve it while this video covers the idea of configuration in Sublime in general.

0 Likes

#3

Thanks dawg

0 Likes