shortcutcode-templatesnetbeans-11

Code Templates does not work in NetBeans 11


I just updated from Netbeans 8.2 to 11 and it seems like Code Templates has stopped working. For example, sout + tab should give a System.out.println(...) and psvm + tab should give a public static void main (..){}

Has anyone else encountered this problem, and if, is there a fix?

It's really annoying since, once you get used to the Code Template Shortcuts, they are hard to live without.

Right now I had to go back to 8.2


Solution

  • Delete the NetBeans cache (C:\Users\xxx\AppData\Local\NetBeans\Cache\11.0) and also the user directory (C:\Users\xxx\AppData\Roaming\NetBeans\11.0).