Skip to content

Instantly share code, notes, and snippets.

@udaykadaboina
Created November 10, 2017 17:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save udaykadaboina/00bd7cfbc315b4cbfdf04020b3d0c5d6 to your computer and use it in GitHub Desktop.
Save udaykadaboina/00bd7cfbc315b4cbfdf04020b3d0c5d6 to your computer and use it in GitHub Desktop.
Macro for "describe" in Sublime Text
[
{
"args": null,
"command": "reindent"
},
{
"args":
{
"characters": "describe"
},
"command": "insert"
},
{
"args":
{
"characters": " "
},
"command": "insert"
},
{
"args":
{
"contents": "\"$0\""
},
"command": "insert_snippet"
},
{
"args":
{
"by": "characters",
"forward": true
},
"command": "move"
},
{
"args":
{
"characters": " do"
},
"command": "insert"
},
{
"args":
{
"characters": "\n\nend"
},
"command": "insert"
},
{
"args":
{
"by": "lines",
"forward": false
},
"command": "move"
},
{
"args": null,
"command": "reindent"
},
{
"args":
{
"characters": " "
},
"command": "insert"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment