Skip to content

Instantly share code, notes, and snippets.

@rendfall
Created March 10, 2015 10:42
Show Gist options
  • Select an option

  • Save rendfall/79c7ae489cb2130605a6 to your computer and use it in GitHub Desktop.

Select an option

Save rendfall/79c7ae489cb2130605a6 to your computer and use it in GitHub Desktop.
SublimeText3 - Repair bad indentation
// required plugin: https://github.com/jisaacks/ChainOfCommand
// Preferences > Key Bindings - User
[
{ "keys": ["alt+shift+r"],
"command": "chain",
"args": {
"commands": [
["unindent", {
"context": [
{
"key": "preceding_text",
"operator": "regex_match",
"operand": "^[\t ]*",
"match_all": true
}
]
}],
["reindent"]
]
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment