All the KDE based editors (Kate, KWrite, Kile, etc.) tend to produce recovery (?) files that are named like the edited file with a tilde at the end. The annoying thing is that these files are left even after I quit the editor. How can I disable this behaviour? I don't mind having these while I am editing (if they help with anything), but I don't want them after I finish.
Go to Settings > Configure > Editor Component > Open/Save > Advanced, and uncheck the box next to local files under "Backup on Save".