I need to create a new "shortcut" command in Sublime Text to run a BAT file.
I know how to use build_systems and even build_systems per project.
I want to add the command to the command palette list (in the image), and to bind a hot-key for that.
How do I do that?
(I'd prefer not using Python for this)
Here is my answer for this:
The command file (second step):
[
{
"caption": "moyshale",
"command":"exec",
"args": {"cmd": "c:\\drive\\1file\\cp.bat"}
}
]
Adding a hot-key (third step):
"keys": ["ctrl+shift+y"],
"command":"exec",
"args": {"cmd": "c:\\drive\\1file\\cp.bat"}
(It's basically the same, just needs to change keys
and caption
)
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments