Created
November 12, 2015 04:41
-
-
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
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
// 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