-
Notifications
You must be signed in to change notification settings - Fork 508
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
Copying code with a here string is incorrect #961
Comments
And IMO, the param, begin, process and end blocks should not be indented. |
Probably related to microsoft/vscode#3422 |
Hmm, I cannot reproduce this on the 1.15 build from 7/28. Can you share your user settings for the Insider's build where you are able to repro this? Also, if there are any workspace settings, share those as well. |
So after testing this again with the latest insider build on 1/08 I've noticed the following:
When running |
Thanks for the settings info. Now I can repro the issue. I couldn't repro before because I have this setting:
which apparently fixes the issue. So for now, perhaps use that as a work-around? |
Thx Keith, good catch! It's actually weird, because according to your findings, if So yes, I believe setting this is a valid workaround. However, it's still a bug and should be fixed internally at some point. I'm sure others will run into the same issue. Thx again for the good investigation, now where is that thumbs up icon? ;) |
In VS Code 1.15.0, they've turned on |
Thx for the feedback @daviwil I'd rather not mess with custom settings because I think this should indeed be handled by the editor in all cases. So code awareness might be needed to make this work properly. Thank you for putting this on the agenda, as it might play for other languages too. |
Tested this today again in the newest insiders build:
When user settings does not contain |
Duplicate with #1517 |
System Details
$PSVersionTable
:Issue Description
When copying code from one file to another, the code isn't correctly copied when a here string is used.
Test code:
Result when copying from left to right:

You can see that the ending
"@
isn't respected and white spaces are added. This results in code that wont run. It's even adding tabs in front of other code, which is not desirable but isn't a showstopper.The text was updated successfully, but these errors were encountered: