Skip to content

Instantly share code, notes, and snippets.

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 codyphobe/c8666f84c1fcec0119ab to your computer and use it in GitHub Desktop.
Save codyphobe/c8666f84c1fcec0119ab to your computer and use it in GitHub Desktop.
[
{
"command": "escape"
},
{
"command": "expand_selection",
"args": {"to": "word"}
},
{
"command": "copy"
},
{
"command": "run_macro_file",
"args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}
},
{
"args": {"characters": "protected $"},
"command": "insert"
},
{
"command": "paste"
},
{
"args": {"characters": ";\n"},
"command": "insert"
},
{
"command": "move",
"args": {"by": "lines", "forward": true}
},
{
"command": "move",
"args": {"by": "lines", "forward": true}
},
{
"command": "move_to",
"args": {"to": "brackets"}
},
{
"command": "run_macro_file",
"args": {"file": "res://Packages/Default/Add Line Before.sublime-macro"}
},
{
"args": {"characters": "$this->"},
"command": "insert"
},
{
"command": "paste"
},
{
"args": {"characters": " = $"},
"command": "insert"
},
{
"command": "paste"
},
{
"args": {"characters": ";"},
"command": "insert"
},
{
"command": "move",
"args": {"by": "lines", "forward": true}
},
{
"command": "move_to",
"args": {"to": "brackets"}
},
{
"command": "move",
"args": {"by": "lines", "forward": false}
},
{
"command": "move_to",
"args": {"to": "eol", "extend": false}
},
{
"command": "move",
"args": {"by": "characters", "forward": false}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment