In IntelliJ (Java IDE) or PhpStorm (PHP IDE) it is called Live Templates.
Go to Setting and start typing "live templates" in the search field. In the right pane, you can edit and create such templates.
So, in your case, you simply type "con" in the text box of the paragraph and "console.log ();" in the text area of ββthe template window below. You can even change with what actions you want to expand the template (default tab, space and input are possible).
The live theme of the template is much more complicated than what I wrote above. You can use variables and some contextual information. For further reading, I suggest the JetBrains / PhpStorm documentation.
synopia Mar 29 '12 at 5:18 2012-03-29 05:18
source share