Sublime Forum

Key binds is not working - Kindly help me

#1

Hello everyone,

This is my first post and I hope someone can help me.

I’m quite new to sublime text. I have installed sublime text 3 properly then package install then theme install then try to key binds for programming language but key bindings are not working. Same problem with Sublime text 4.

OS - Windows 10

Below key is the syntax for your reference also attached screenshot for your reference.

I want to press alt+1 and this tag (<sz;10q;1q>) should be generate but its not working.

[
{ “keys”: [“alt+1”], “command”: “<sz;10q;1q>” }

]

Thank yo…!

0 Likes

#2

your are better off making a snippet for that tag.

0 Likes

#3

<sz;10q;1q> is not a valid command name.

Based on this, I believe you want to insert <sz;10q;1q> at caret position when alt + 1 is pressed. If so the key binding will be (using the insert command)

{
    "keys": ["alt+1"],
    "command": "insert",
    "args": {
        "characters": "<sz;10q;1q>"
    },
},

or as suggested above, you can use a snippet as well (whatever makes you comfortable)

1 Like

#4

Hello Sir,

Given tag is working fine.

Thank you so much…!

0 Likes