notepad-plus-plus icon indicating copy to clipboard operation
notepad-plus-plus copied to clipboard

[Feature request] Please add support for Ctrl+Q to Powershell .PS1 files to toggle comments

Open iDoNotConsentToBeingTracked opened this issue 6 months ago • 2 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.xml file 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++.exe is
  • 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

rdipardo avatar Jun 04 '25 04:06 rdipardo