You are here: PSPad forum > English discussion forum > Re: feature : Toggle into comment

Re: feature : Toggle into comment

#1 feature : Toggle into comment

Posted by: akiuni | Date: 2021-05-27 12:16 | IP: IP Logged

Hello

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 + ':')

Thanks
Best regards
Julien

Edited 1 time(s). Last edit at 2021-05-27 12:16 by akiuni.

Options: Reply | Quote | Up ^


#2 Re: feature : Toggle into comment

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)

Options: Reply | Quote | Up ^


#3 Re: feature : Toggle into comment

Posted by: akiuni | Date: 2021-05-27 13:24 | IP: IP Logged

Great !!!
( I didn't see that menu, sorry )

Many thanks

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR