-
Notifications
You must be signed in to change notification settings - Fork 509
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reindent lines breaks here strings #977
Comments
@kapilmb Does the "Reindent Lines" command use the code formatter? |
Same experience for me. I need to remove the indent to make it work properly, which is not my preference when working in a block in which everything else is indented. |
@Eisen-Hardt the ability for Can you open an issue here? Today, a script wont work properly with anything in front of the closing here string ( |
You know, I did just see the same thing in ISE and was thinking maybe this isn't a vscode thing. I will open an issue, thx. |
Looks like there is one open already. PowerShell/PowerShell#2337 (comment) |
@TylerLeonhardt should this be closed as resolution-external or would there potentially be plans to intercept the indentation process and "smart indent" any detected here strings? Seems like that's fraught with issues vs. PowerShell/PowerShell#2337 (comment) |
System Details
$PSVersionTable
:Issue Description
Reindent Lines breaks here-strings
After running Reindent Lines:
This breaks there here-string as white space is not allowed before the string terminator (which the syntax highlighter correctly points out).
Also you do not usually want additional white space added in the middle of a literal string.
Possibly related to #961
The text was updated successfully, but these errors were encountered: