intellij-idea

LiveTemplate for TODO shortcut seems not working


I'm using Intellij Ultimate 2023.3.6 and LiveTemplate to add TODO with words "todo" not working anymore.

I tried to clear cache, restart, disable and re-enable live template but nothing seems working.

Can someone help me? Thanks.

I'm talking about this, in past versions of intellij works as expected: enter image description here


Solution

  • The problem was the "Applicable context". As you can see in picture this works only for scala code, I was trying to use this in Java Code. I duplicated the Live Template for Java and it works as expected!

    Another solution can be add Java to Applicable context (I don't like this solution and created a dedicated one).

    This is my live template:

    enter image description here

    under Java key:

    enter image description here