Skip to content

Instantly share code, notes, and snippets.

@kurtbartholomew
Last active August 29, 2015 14:15
Show Gist options
  • Save kurtbartholomew/ea5cb54474e5d836a56c to your computer and use it in GitHub Desktop.
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
// 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