https://bugs.kde.org/show_bug.cgi?id=426981
Bug ID: 426981 Summary: Toggle Comment should add comment markers when only part of the selection is comment Product: kate Version: 20.08.1 Platform: openSUSE RPMs OS: Linux Status: REPORTED Severity: wishlist Priority: NOR Component: part Assignee: kwrite-bugs-n...@kde.org Reporter: groszdaniel...@gmail.com Target Milestone: --- SUMMARY If would be more practical if the Toggle Comment action added an additional level of comment markers, rather than removing them, when some lines in the selection are comment lines but others aren't. Qt Creator behaves like this. STEPS TO REPRODUCE A typical example: if (error) { // OOPS exit(1); } Then select all of this and invoke Toggle Comment. EXPECTED RESULT I most likely wanted to comment out all this code, so I'd like to get // if (error) // { // // OOPS // exit(1); // } OBSERVED RESULT I get if (error) { OOPS exit(1); } Wanting to uncomment multiple blocks in one go is not a very common operation, so this behavior is most likely useless. SOFTWARE/OS VERSIONS openSuse Tumbleweed 20200923 KDE Plasma Version: 5.19.5 KDE Frameworks Version: 5.74.0 Qt Version: 5.15.1 -- You are receiving this mail because: You are watching all bug changes.