Skip to content

Instantly share code, notes, and snippets.

@prongbang
Last active August 29, 2015 14:00
Show Gist options
  • Save prongbang/f95f1f24a6c14cd5ffe2 to your computer and use it in GitHub Desktop.
Save prongbang/f95f1f24a6c14cd5ffe2 to your computer and use it in GitHub Desktop.
Preferences-> Key-Binding-User -> paste ->
1.auto-format :: ctrl+alt+t
-{ "keys": ["ctrl+alt+t"], "command": "reindent" , "args": {"single_line": false}}
2.python-auto-format ::
- GNU/Linux: ctrl+shift+r
- OSX: ctrl+shift+r
- Windows: ctrl+shift+r
- { "caption": "User: Python PEP8 Autoformat", "command": "pep8_autoformat" }
:: Result
[
{
"keys": ["ctrl+alt+t"], "command": "reindent" , "args": {
"single_line": false
}
},
{ "caption": "User: Python PEP8 Autoformat", "command": "pep8_autoformat" }
]
Reference :: https://sublime.wbond.net/packages/Python%20PEP8%20Autoformat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment