I am looking at live templates in IntelliJ IDEA and I wanted to know whether there is a way to log.debug()
a variable quickly.
Let's say I want:
var myValue = 10;
log.debug("myValue=" + myValue);
I have log.debug("" + $STRING$);
in the live template, but this will force me to include the variable name and text manually. Does IntelliJ have the ability to log a variable that directly precedes my cursor? Or through some other action?
I looked at this too.