intellij-idea/ trace/ shortcut

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.

Related Question IntelliJ IDEA UML shortcut IntelliJ IDEA shortcut tips Stack Trace Console in IntelliJ IDEA Keyboard shortcut for 'refactor' for IntelliJ IDEA Shortcut to uncomment javadoc in IntelliJ IDEA IntelliJ IDEA program arguments (shortcut) Command shortcut in intellij-idea IntelliJ IDEA shortcut to switch 2 words Intellij Idea Terminal shortcut not working Jump to editor shortcut in Intellij IDEA
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM