2

I've been trying to create a shortcut to the snippet palette in Sublime Text 3 but can't seem to get it to work. I don't get an error, I just get nothing. I am on a Mac and have the following in Preferences: Key Bindings - User

{
    "keys": [ "ctrl+y" ],
    "command": "show_overlay",
    "args": {
        "overlay": "command_palette",
        "text": "Snippet:"
    }
}

1 Answer 1

1

Did you put your code into this [] ?

It works for me:

[
    { 
        "keys": ["ctrl+y"], 
        "command": "show_overlay", 
        "args": {
            "overlay": "command_palette", 
            "text": "Snippet: "
        }
    }
]
Sign up to request clarification or add additional context in comments.

2 Comments

I did not. That fixed it. Thank you!
If it works then you should accept my answer so that other people can be benefited from it. Thank you.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.