Reputation: 8629
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
Upvotes: 0
Views: 4914
Reputation: 1
in my case it helped to just rename the file of the Language where i had the issue. For me it was x-php5:
(C:\Users\xxx\AppData\Roaming\NetBeans\20\config\Editors\text\x-php5\CodeTemplates\)
.
so I had a backup of the already configured code template and still kept the other user settings. I did this while netbeans was open. I then just created a new dummy setting - and everything worked again.
Hope this helps somebody - as it was very annoying for me...
Upvotes: 0
Reputation: 1
Just changing 1 of your code templates (extra Enter) resolved the issue for me.
Upvotes: 0
Reputation: 6045
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
).
Upvotes: 4