You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Since the first version is a pretty common comment block pattern (used in JSDoc and YUIDoc and similar projects), it'd be great if the auto indent feature could support this indentation instead of messing with it.
Reacted by Samuel Gaus, Patrick Cate, Luis Eduardo Brito, Henrik Hall, max.rodionov, Jean C. Solís, KUDRIAVTSEV ANDREW, Sajera, Ricky, Joe Pea and 1 more
I would call this a bug rather than an enhancement. The editor messes with the spacing when it shouldn't. If my indentation is set to tabs, then a space (the extra space on the 2nd and 3rd line of the comment block) should be treated as any other character, and not as indentation.
Note that it also only seems to happen when pasting to the beginning of a line. When pasting where indentation is already indented, the comment block is preserved.
In the latest version of Atom, the bug is reversed. Pasting at the beginning of a line now preserves these comment blocks. Pasting with indentation however, collapses the comments as seen above. I will make some animated gifs from this behaviour, because there are more cases where it goes wrong.
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
What OS and version you reproduced the issue on
What steps you followed to reproduce the issue
Issues that are labeled as triaged will not be automatically marked as stale.
Of course this is still an issue, but I don't use Atom anymore so feel free to close it. Four and half years later still open, It's obviously never going to get fixed.
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Verify that you can still reproduce the issue in the latest version of Atom
Comment that the issue is still reproducible and include:
What version of Atom you reproduced the issue on
What OS and version you reproduced the issue on
What steps you followed to reproduce the issue
Issues that are labeled as triaged will not be automatically marked as stale.
Activity
adamreisnz commentedon May 5, 2015
I would call this a bug rather than an enhancement. The editor messes with the spacing when it shouldn't. If my indentation is set to tabs, then a space (the extra space on the 2nd and 3rd line of the comment block) should be treated as any other character, and not as indentation.
Note that it also only seems to happen when pasting to the beginning of a line. When pasting where indentation is already indented, the comment block is preserved.
adamreisnz commentedon Jun 5, 2015
In the latest version of Atom, the bug is reversed. Pasting at the beginning of a line now preserves these comment blocks. Pasting with indentation however, collapses the comments as seen above. I will make some animated gifs from this behaviour, because there are more cases where it goes wrong.
adamreisnz commentedon Jun 10, 2015
Here's several examples of how things go wrong with these comment blocks:
Example 1: wrong indentation (1 space instead of 2 spaces) directly under the comment blocks

Example 2: again wrong indentation when pasting something underneath the comment blocks

Example 3: even when correcting the indentation, upon next paste it's not respected

Example 4: comment block collapsing in some cases when pasted on indented lines

Example 5: another example of comment block collapsing when pasted on indented lines

@benogle @50Wliu , any chance we can have this issue reclassified as a bug?
winstliu commentedon Jun 10, 2015
Agreed, this does look like a bug.
brunogaspar commentedon Nov 16, 2015
I'm facing the same issue i believe
At least, this was the only relevant GH issue i could find that has somewhat the same, wrong behavior, i'm facing.
So when i copy a comment, it adds an extra "tab" to each line, so the comment looks wrongly inserted.
adamreisnz commentedon Jan 1, 2016
This also affects moving lines of code up. They get indented one space too many when moved to under a comment block of this style.
BryanDonovan commentedon Apr 5, 2016
vdeep commentedon Apr 10, 2016
bjornwang commentedon Nov 14, 2016
luiseduardobrito commentedon Feb 26, 2017
henhal commentedon May 22, 2017
10 remaining items
adamreisnz commentedon May 28, 2017
Yes, should we extract that bug into a new issue?
klarkc commentedon Sep 12, 2017
+1 Problems with docblockr generated jsdoc, that is indented.
nahidakbar commentedon Sep 25, 2017
+1
Also, when you start a comment block and press enter, it should start a new line with indented block.
Basic documentation functionality all editors support.
zhanwenchen commentedon Oct 28, 2017
Sneha-Watharkar commentedon Feb 21, 2018
Is this issue still open?
adamreisnz commentedon Feb 21, 2018
Yes, it has never been fixed.
trusktr commentedon Jun 11, 2018
This makes a simple task like auto-indenting a whole file impossible.
stale commentedon Dec 23, 2019
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale.
adamreisnz commentedon Dec 24, 2019
Of course this is still an issue, but I don't use Atom anymore so feel free to close it. Four and half years later still open, It's obviously never going to get fixed.
stale commentedon Dec 25, 2020
Thanks for your contribution!
This issue has been automatically marked as stale because it has not had recent activity. Because the Atom team treats their issues as their backlog, stale issues are closed. If you would like this issue to remain open:
Issues that are labeled as triaged will not be automatically marked as stale.
icecream17 commentedon Feb 27, 2021
Hmm. Maybe I'll have a go at it? Don't expect this to be fixed anytime soon though