Is there any shortcut to generate trace statements from selected variable, like ctrl-shift-0 in flash develop?
E.g.: If I select myVar in the below line and press “DesiredShortcut”:
var myVar=5;
I’d like to get:
var myVar=5;
trace(‘myVar=’+myVar);
Thanks
Consider using Live Templates.
For Java IntelliJ IDEA already has
soutvtemplate that will generateafter pressing Tab.
You can define your own templates to log via your favorite logging framework.