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:
开发者_C百科 var myVar=5; trace('myVar='+myVar);Thanks
Consider using Live Templates.
For Java IntelliJ IDEA already has soutv
template that will generate
System.out.println("var=" + var);
after pressing Tab.
You can define your own templates to log via your favorite logging framework.
精彩评论