-
Notifications
You must be signed in to change notification settings - Fork 28.2k
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
Pasting into code line below a jsdoc block comment auto-indents by one space character #119225
Comments
Yes, please fix it, it's really annoying and wasn't happening couple of versions back. |
Alternative steps to reproduce, most likely the same root cause: Copy the following block, paste it into an empty line. Everything following the first jsdoc comment will be indented. /**
* doc
*/
var x = 1;
/**
* doc
*/
var y = 1; |
I can also confirm this is happening consistently in Javascript, and that this didn't use to happen in earlier versions. Example 1/**
* Block comment
*/
class Test {
/**
* Block comment
*/
someMethod() {
doSomething()
}
} To reproduce: Paste the block 2 rows below and observe that there is an extra space added before Example 2Same code as below, but this time paste the block outside of the class. The whole comment block gets wrecked, and the extra space is still there: There are more examples with subtly different behaviour, but these are the most aggravating and I don't remember the others at this moment. I will update this comment and post again once I encounter them again. Fun fact, I switched from Atom to VSCode precisely because it was riddled with these minor annoyances which would never get fixed and are still an issue 5 years later. I was so excited that VSCode didn't have any of the annoying paste bugs that Atom had, but now they have appeared here as well, and don't seem to be getting a lot of traction to fix 😢 |
Hope this can be reviewed/merged |
Merged the fix yet? i still see the extra space after pasting, i guess it is so due to autoformat after pasting |
This issue also applies to other languages, at least PHP. |
Steps to Reproduce:
Result: The pasted word indents the line by one space. This should not happen below such a jsdoc comment block.
Does this issue occur when all extensions are disabled?: Yes
The text was updated successfully, but these errors were encountered: