I'd like to create a custom keybinding on ST3 so that whenever I highlight an element or my cursos is next to it, it surrounds it with a predefined text.
Something that would look like that
{
"keys": ["ctrl+shift+m"], "command": "insert_snippet"
,"args": {"contents": "text before", "text after"}
}
So that: file.js
becomes: text before file.js text after
Any help will highly be appreciated.