Add to Preferences > Key Bindings - User
:
Auto replace to $this->
after typing $-
// Auto replace to $this-> after typing $-
{ "keys": ["-"], "command": "insert_snippet", "args": {"contents": "this->"}, "context":
[
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_contains", "operand": "\\$$", "match_all": true },