Re: WEE Enhancement Request - Toggle Comments On/Off
- Posted by petelomax Apr 10, 2015
- 1370 views
ghaberek said...
I would think that Ctrl+- and Ctrl+= (the plus key) would toggle code folding at the current line (if applicable).
Edita uses <Ctrl -> and Ctrl +> to fold and unfold, and <Ctrl >> and <Ctrl <> to comment and uncomment. (It may really be/I may really mean <Ctrl ,> and Ctrl .> for the latter two, no Shift needed anyway.)
The problem with a toggle is that it has to decide which it is doing somehow, so if some block you have selected starts with a "real" comment (as in -- this is a comment) then it will remove comments which is likely to be the opposite of what was really wanted. Maybe it is just me, but if I have say
-- -- Preload the grinch-blocks -- EnterCriticalSection() Blockify(LoadGrinches()) LeaveCriticalSection()
then I often want to (visually) remove/replace both the code and comments together as one.
Pete