In Intellij Idea when i typing psfs
and then press Ctrl+J IDE was getting me a dialog :
And when i press Enter i get an
I know where i can customize my own output
But i can't any doc's how i can write my own live template.
In the end i want to get next result :
psfst
-> press Ctrl+J -> press Enter public static final String TAG = <currentClassName>.class.getSimpleName();
It will be so helpfull, because i have a habit to log my classes.
I find a solution
1) Create a new live template in plain group
2) In template text :
private static final String TAG = $CLASS_NAME$.class.getSimpleName();
3) Define a usage scope :
4) Choose a shortcut :
finally click on Edit variables and change expression value to className()
Click Ok , Apply, Ok and use.