I would like to setup keyboard shortcuts so I can quickly change tab sizes. After using sublime.log_commands(True)
I can see that when I change tab sizes, Sublime runs this: {"setting": "tab_size", "value": 2}
so I tried adding this to my keymap file, which does not work…
{ "keys": "super+ctrl+1"], "setting": "tab_size", "value": 1},
{ "keys": "super+ctrl+2"], "setting": "tab_size", "value": 2},
{ "keys": "super+ctrl+3"], "setting": "tab_size", "value": 3},
{ "keys": "super+ctrl+4"], "setting": "tab_size", "value": 4}
Does anyone know how to do achieve what I need?