You are here: PSPad forum > English discussion forum > Re: feature : Toggle into comment
Posted by: akiuni | Date: 2021-05-27 12:16 | IP: IP Logged
A little feature that could be nice to have in pspad could be the "Toggle into Comment".
As a developper, I often have to select a portion of text (code) in the file, then I navigate to Search, Replace and repalce "^" with "#" in regex mode.
What could be nice is a short cut that toggles the selected lines with a "#" at the beginning.
This is done for exemple in Microsoft VSC (CRTL + ':')
Edited 1 time(s). Last edit at 2021-05-27 12:16 by akiuni.
Posted by: pspad | Date: 2021-05-27 12:20 | IP: IP Logged
It's possible with languages supported line comment
Select lines you want to turn into comment
From the menu Format use Add/Remove format (Shift+Ctrl+A)
Posted by: akiuni | Date: 2021-05-27 13:24 | IP: IP Logged
( I didn't see that menu, sorry )