1

I am running sublime text 3 on Ubuntu 14.04 LTS.

I added the following line to the user key bindings:

{ "keys": ["ctrl+alt+shift+s"], "command": "save_all" }

Following this forum: Sublime Save All

Now, when I start sublime, I get the following error that pops up:

Error trying to parse settings: Unexpected character, expected a comma or closing bracket in Packages/User/Preferences.sublime-settings:7:2

This error appears whether the additional keybinding is present or removed, or if there's a comma after the final } or not. At this point, figuring out a way to remove the pop up is just as good as making it work. Any ideas on how to help?


EDIT: As requested, my complete user keybindings file:

[
    { "keys": ["ctrl+alt+shift+s"], "command": "save_all" }
]
4
  • Please provide your complete keybininds file, especially the line before and after the new one.
    – mpy
    Commented Apr 7, 2015 at 18:46
  • @mpy I added the complete file in the question.
    – jlzizmor
    Commented Apr 8, 2015 at 20:07
  • Ah, the error says error parsing preferences.sublime-settings (line 7). It's not the keybindings file (which even has not seven lines).
    – mpy
    Commented Apr 8, 2015 at 20:11
  • There's the error! sloppy mistake on my end
    – jlzizmor
    Commented Apr 9, 2015 at 22:10

1 Answer 1

0

The error message gives you a good hint, where to look for the error:

Error trying to parse settings: Unexpected character, expected a comma or closing bracket in Packages/User/Preferences.sublime-settings:7:2

It gives you the file, where the error occurs (Preferences.sublime-settings) and the line number 7. Very often such an error occurs, if you forget the line separator (comma) in the line before, so in this example in line 6.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .