formatting sublime text shortcut code example
Example 1: sublime text comment shortcut
# Workaround for sublime comment bug:
Goto Preferences -> Key Bindings and paste this in
{ "keys": ["ctrl+7"], "command": "toggle_comment", "args": { "block": false } },
{ "keys": ["ctrl+shift+7"], "command": "toggle_comment", "args": { "block": true } }
Example 2: shortcut for auto format in sublime text 3
{"keys": ["alt+shift+f"], "command": "reindent", "args": {"single_line": false}}