Created
December 17, 2013 16:35
-
-
Save bytespider/8007924 to your computer and use it in GitHub Desktop.
Fix Sublime text bracket indentation issue http://stackoverflow.com/questions/11297868/sublime-text-v-2-0-how-do-i-stop-auto-indentation-on-new-lines-after-bracket
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
[ | |
{ | |
"keys": ["enter"], | |
"command": "run_macro_file", | |
"args": { | |
"file": "res://Packages/Default/Add Line in Braces.sublime-macro" | |
}, | |
"context": | |
[ | |
{ "key": "setting.auto_indent", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\)", "match_all": true } | |
] | |
}, | |
{ | |
"keys": ["shift+enter"], "command": "run_macro_file", "args": {"file": "res://Packages/Default/Add Line in Braces.sublime-macro"}, "context": | |
[ | |
{ "key": "setting.auto_indent", "operator": "equal", "operand": true }, | |
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, | |
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\($", "match_all": true }, | |
{ "key": "following_text", "operator": "regex_contains", "operand": "^\\0", "match_all": true } | |
] | |
} | |
] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"smart_indent": false | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment