Skip to content

Instantly share code, notes, and snippets.

@chenyong
Created June 9, 2020 08:10
Show Gist options
  • Save chenyong/50112474f793a375b4bac59b5bf98d98 to your computer and use it in GitHub Desktop.
Save chenyong/50112474f793a375b4bac59b5bf98d98 to your computer and use it in GitHub Desktop.
Sublime Text keybindings to disable wrapping indented blocks
[
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{$0}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\t| |\\)|]|\\}|$)", "match_all": true }
]
},
{ "keys": ["{"], "command": "insert_snippet", "args": {"contents": "{${0:$SELECTION}}"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true }
]
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment