intellij-powershell
intellij-powershell copied to clipboard
Hitting the ENTER key while in a block comment inserts a new comment block terminator
If I have a block comment for a script or function like this...
<#
.SYNOPSIS
Some Synopsis
.DESCRIPTION
Some longer description
.CL
-----
2019/10/29 ALS BG12345 - added handling for slashes
#>
(".CL" is a Change Log)
If I hit enter in the whitespace between the description and the CL, Pycharm adds a #> where the cursor was and i think is trying to terminate the comment. It ends up looking like this.
<#
.SYNOPSIS
Some Synopsis
.DESCRIPTION
Some longer description
#>
.CL
-----
2019/10/29 ALS BG12345 - added handling for slashes
#>.
.. which is invalid syntax and a broken powershell script. The color coding still makes it look like a comment, only when running it (or trying to) will you get syntax errors.
I had originally opened this issue with jet brains. and they had suggested I come here instead.