I am using Kate for editing some source code. Unfortunately, I have lots of trailing space in there. Is there a simple way to clean the whole text document? I believe there is a simpler way than using a complicated Find/Replace operation with Regular Expressions.
Indeed it is as mentioned in the comments: You can define the behavior on save in the Open/Save
config page as described in this blog: https://kate-editor.org/2012/10/27/remove-trailing-spaces/