[Implemented] Improve code templates safety

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Lunasole
Addict
Addict
Posts: 1091
Joined: Mon Oct 26, 2015 2:55 am
Location: UA
Contact:

[Implemented] Improve code templates safety

Post by Lunasole »

As for me the code templates tool is one of really great and useful from those IDE built-in tools ^^

But currently code templates tool saves newly added (or modified) templates only on IDE quit.
Because of this I had several times loss of templates code -- they just didn't saved if IDE crashes, etc.

So it would be nice to write Templates.prefs file to a disk immediately after it was changed (or use delayed saving after it has changed, by timeout defined somewhere in IDE settings).
"W̷i̷s̷h̷i̷n̷g o̷n a s̷t̷a̷r"