Live template with filename and line number
Hi, I would like to create a hotkey / live template that outputs the following:
console.log('App.js:12', )
App.js:12 would be the actual file name and line number the cursor is on. Can Phpstorm be setup to do that part?
Please sign in to leave a comment.
Hi there,
Should be "Yes".
https://www.jetbrains.com/help/phpstorm/template-variables.html#predefined_functions
Also: https://confluence.jetbrains.com/display/PhpStorm/Live+Templates+%28Snippets%29+in+PhpStorm