Sublime Forum

How to add shortcut for special character like "[" or "@"

#1

Hi, i trying to add shortcut for special character like [ and @.

I want to create character @ when i press AltGr + v

and character [ when i press AltGr + f

Do somebody know how add these shortcuts for @ and [ into sublime?

Please help me :smiley: iam frustrated :confused:

thx.

0 Likes

#2

Open the Command Palette and run “Preferences: Key Bindings”. This opens a new window with the default key bindings for the Default package in the left view, and your personal key bindings in the right view.

If you don’t have any personal keybindings set, paste this into the right-most view:

[
    {
        "keys": ["alt+v"],
        "command": "insert",
        "args": {"characters": "@"}
    },
    {
        "keys": ["alt+f"],
        "command": "insert",
        "args": {"characters": "["}
    },
]
2 Likes

#3

THX man, god bless your computer :slight_smile:

I thought that i had some mistakes in my code. After your advice i have found that: AltGr= alt+ctrl

For keybord AltGr:

[
{
“keys”: [“alt+ctrl+v”],
“command”: “insert”,
“args”: {“characters”: “@;”}
},
{
“keys”: [“alt+ctrl+f”],
“command”: “insert”,
“args”: {“characters”: “[”}
},
]

Thx very much for your help :wink:

2 Likes