Skip to content

Instantly share code, notes, and snippets.

@munirwanis
Created November 14, 2016 16:30
Show Gist options
  • Save munirwanis/042c0ce4c31d52c1ecf793ea83e22c0a to your computer and use it in GitHub Desktop.
Save munirwanis/042c0ce4c31d52c1ecf793ea83e22c0a to your computer and use it in GitHub Desktop.
Every time you want to run queries on SQL and have a lot of items without the ' ', caracteres you can run this macro on sublime and it'll do the job
[
{
"command": "select_all"
},
{
"command": "split_selection_into_lines"
},
{
"args": {
"extend": false,
"to": "bol"
},
"command": "move_to"
},
{
"args": {
"characters": "'"
},
"command": "insert"
},
{
"args": {
"extend": false,
"to": "eol"
},
"command": "move_to"
},
{
"args": {
"characters": "',"
},
"command": "insert"
},
{
"args": {
"extend": false,
"to": "eof"
},
"command": "move_to"
},
{
"command": "left_delete"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment