Last active
August 29, 2015 14:15
-
-
Save kurtbartholomew/ea5cb54474e5d836a56c to your computer and use it in GitHub Desktop.
Sublime Macro to put a semicolon at the end of the line and return
This file contains 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
// Place this file within Packages/User of your Sublime install folder | |
[ | |
{ "command": "set_mark" }, | |
{ "command": "move_to", "args": {"to": "eol"} }, | |
{ "command": "insert_snippet", "args": {"contents": "${TM_LINE_TERMINATOR:;}"} }, | |
{ "command": "swap_with_mark" } | |
] | |
/* | |
Place the entry below in Preferences -> Key Bindings : User | |
Change the keys section to whatever binding you want | |
{ | |
"keys": ["alt+;"], | |
"command": "run_macro_file", | |
"args": {"file": "Packages/User/semiEnder.sublime-macro"} | |
} | |
*/ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment