SUMMARY There needs to be a WYTIWYG ("what you type is what you get") mode for KATE. Currently it is very difficult to always disable automatic indentations for certain filetypes. A strict WYTIWYG mode would mean that KATE will never insert any characters (including spaces or indents) that were not typed by the user, regardless of the filetype. STEPS TO REPRODUCE 1. For file "style.css", type "/*" and hit enter. 2. " * " is automatically inserted by KATE. 3. No option in settings to disable automatic indentation for all filetypes. SOFTWARE/OS VERSIONS KATE 20.12.2 for 64-bit Microsoft Windows 10 Education
Hi, I can't try this on Windows but on my Linux installation (same version of Kate though), there is the section Indentation in the Tools' menu which determines (I think because it works on my side, but I'm not sure) whether characters are automatically inserted or not. Could you try to set it to None and see if characters are still inserted ? If this solves it, I guess this bug can be closed.
Just found this issue. @Boris Petrov, the "none" option does turn the auto-indenting off, but the setting doesn't "stick" so the next file you open it will be back on again, keeping auto-indent off is a constant battle. So the menu option helps mitigate this, but does not solve the problem. Even when indentation is off for a specific file type in the settings, Kate sometimes inexplicably loads the file with the indentation on. It could just be the way I type/my brain works, but I find it really confusing to have stuff I didn't type appear under my cursor. Also, the auto-completion, indentation etc seems to get it wrong more often that it gets it right, so I'm forever deleting and correcting what it does if I leave it on. The problem is that there are so many options in kate in so many places that control these things it takes for ever to switch it all off for everything (eg you can't switch auto-indent off for every file type with a single control) and new settings always seem to creep in. So a single "WYTIWYG" mode that disables everything that tries to add/correct/change what I type would be very very appreciated.
If somebody wants to have that, please provide a patch. https://kate-editor.org/join-us/ I don't see that we have time nor interest to implement that ourselves, please scratch you own itch, thanks.