I generally know how to map keys in Key Bindings - User, but I’m not quite sure the syntax for long nested menu commands.
I’d like to map a function key like F19 (Mac) to View > Syntax > Babel > Javascript (Babel)
What would be the syntax for this?
I generally know how to map keys in Key Bindings - User, but I’m not quite sure the syntax for long nested menu commands.
I’d like to map a function key like F19 (Mac) to View > Syntax > Babel > Javascript (Babel)
What would be the syntax for this?
Use sublime.log_commands(True) to log commands/arguments in the ST console (ctrl+`).
I ran that command, but I’m still not sure what json style code to include in my Keybindings — User file.
e.g. I added this to make a comment out of a selection:
{ "keys": ["ctrl+shift+/"], "command": "toggle_comment", "args": { "block": false } }
command: set_file_type {"syntax": "Packages/php-grammar/PHP.sublime-syntax"}
↓
{
"keys": ["WHATEVER"],
"command": "set_file_type",
"args": { "syntax": "Packages/php-grammar/PHP.sublime-syntax" }
}