I found out that there is a livetemplate for phpstorm, you type your template, cl -> tab -> consle.log is displayed, and how to make it so that you can select a variable that interests me and output it to console.log after the hot key?
1 answer
You can create an appropriate Surround template , like
console.log($SELECTION$) These templates are applied to the selected piece of code using Ctrl+Alt+J ( Code | Surround With Live Template ... ).
There are still so-called. Postfix templates - just write myVar.log and press tab => it turns out console.log(myVar)
|
