Skip to content

Instantly share code, notes, and snippets.

@paulfarino
Created November 12, 2015 04:41
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paulfarino/9854ee703c9b7df8c624 to your computer and use it in GitHub Desktop.
Save paulfarino/9854ee703c9b7df8c624 to your computer and use it in GitHub Desktop.
Sublime Text Macro to insert a semicolon at the end of a line
// Add the following to `Sublime Text > Preferences > Keybindings - User`
[
{ "keys": ["command+shift+;"], "command": "run_macro_file", "args": {"file": "Packages/User/EOL-semicolon.sublime-macro"} }
]
// The macros should look like the following
// The file should be placed in `cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/EOL-semicolon.sublime-macro`
[
{
"args":
{
"to": "eol"
},
"command": "move_to"
},
{
"args":
{
"characters": ";"
},
"command": "insert"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment