Open emoreth opened 14 years ago
Hi,
I have tested it and created a new snippet (new abbreviation and body) and that worked as supposed.
I have also tested to change one of the predefined rules and yes, this rules are setup by the plugin, hence you are not able to change them permanently, as the plugin reinstalls them when you restart Netbeans (when you have deleted them, messed up, done what you did not wanted to do ... )
There are 2 workarounds in my opinion for your problem:
1) choose different (maybe language specific) abbreviations. example: for the "german" "given" you could use "gg" "g_g" ... just use something which is not defined. (Netbeans will warn you if try to create a duplicate)
2) try to export & import your settings. at the bottom of the dialog window are the export and import buttons for your settings, hence you could try to save your changes and when you restart import your settings so that you do not have to change them again. ( I didn't try that, but this should work)
Hope this helps,
Roland
I thought, that I found a solution, but this solution did not work.
I have tried to change the snippets.xml file (change the xml:space attribute from preserve to default) but those changes had no effect (even when I deleted my settings directory and the plugin installation).
If someone knows a solution or knows how to change the snippets.xml to make it possible to permanently change an abbreviation, then please let me know.
Regards,
Roland
I'm not sure that this is not a netbeans issue, but the code snippets are reloaded every time netbeans is started.
My cucumber tests are not in english, so I want to change those snippets to another language, but if I restart netbeans all my changes are lost.
Please take a look at it.
Regards, EMoreth