-
Notifications
You must be signed in to change notification settings - Fork 110
Copy/Pasting YAML results in wrong indentation #226
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
Comments
Do you have any YAML auto-formatter installed? |
I do have the |
I've experienced the same issue for months as well. It's a shame because I really like what the extension has to offer. I just leave it disabled. |
I think this may be solved by the following setting "[github-actions-workflow]": {
"editor.autoIndent": "keep"
} I spent some time tinkering with this incorrectly for the |
@neil176 Thank you! That fixed this for me as well. |
where to add this |
@Lekshmisr26 In the VScode setting file |
Same awful experience here. The first line of a pasted block has the indentation always changed wrong, while the rest of the YAML block stays as is. I don't have any YAML-related extension active. I use YAML only in GitHub workflows. |
I find an Undo (Cmd/Ctrl + Z) after pasting helps. |
Describe the bug
Copy Pasting yaml when file is identified as GitHub workflow is messed up.
To Reproduce
Screen.Recording.2023-07-05.at.15.53.21.mov
Expected behavior
N/A
Screenshots
N/A
Extension Version
v0.25.8
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: