Sublime Forum

GoSublime user key map syntax error

#1

The latest GoSublime (13-07-29) suggests the following optional key mapping:

[code] // With this following key binding, you can have the line commented out and
// the cursor automatically moved to the next line.

{ "keys": "ctrl+/"], "command": "gs_comment_forward",
    "context": { "key": "selector", "operator": "equal", "operand": "source.go" }] },[/code]

If I insert this into file …/sublime-text-3/Packages/User/GoSublime.sublime-settings, I get the syntax message:
Error trying to parse settings: Expected value in Packages/User/GoSublime.sublime-settings:6:5

Is there supposed to be a User file for keymaps for the package GoSublime? If so, what path?

Ubuntu Linux 13.04, Sublime-text-3 build 3053

0 Likes

#2

That should go in "Packages/User/Default ().sublime-keymap. You can access this file by going to “Preferences -> Key Bindings - User”.

0 Likes