Is there any shortcut to generate trace statements from selected variable, like ctrl-shift-0 in flash develop? Eg: If I select myVar in the below line and press "DesiredShortcut":
var =5; = 5;
I'd like to get:
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.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.