notepad-plus-plus
notepad-plus-plus copied to clipboard
[Feature request] Please add support for Ctrl+Q to Powershell .PS1 files to toggle comments
Is there an existing issue for this?
- [x] I have searched the existing issues
Description of the Issue
[Feature request] Please add support for Ctrl+Q to Powershell .PS1 files to toggle comments
Describe the solution you'd like.
^
Debug Information
^
Anything else?
No response
-
Open the
langs.xmlfile in:%AppData%\Notepad++if you used the full installer — your Debug Information will show%ProgramFiles%\Notepad++or%ProgramFiles(x86)%\Notepad++;
or,
- the portable Notepad++ folder where
notepad++.exeis
-
Locate
./Languages/Language[@name="powershell"] -
Look for
commentLine="#", like this:https://github.com/notepad-plus-plus/notepad-plus-plus/blob/645990581658350a071f7262115cebb698c830b8/PowerEditor/src/langs.model.xml#L443
If it's not there, edit the file to make it look like the above
-
Restart Notepad++
-
Press Ctrl + Q to comment a line of PowerShell