-1

Replace two dots ".." to dereference operator "->"

baurzhan zhakashev fa 12 anys actualitzat fa 12 anys 5

while writing OOP PHP using ultraedit there is nice replacement of ".." (two dots) to to dereference operator "->"


is has sublime text 2 this function?

Probably the easiest way would be to add something like this to your user keybinds file:


{ "keys": [".", "."], "command": "insert_snippet", "args": {"contents": "->"}, "context": [ { "key": "selector", "operator": "equal", "operand": "source.php" } ] }


Well try just


{ "keys": [".", "."], "command": "insert_snippet", "args": {"contents": "->"} }


and ensure you have a comma between every {"keys"...} section.

what other users use this like functionalty while writing their OOP PHP script?

or they type as "-" key then ">" key (but it's to slow)