Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Pasting code with a comment block indents the pasted code too much #11995

Closed

Description

@adamreisnz

Pasting code which contains a comment block, e.g.:

  /**
   * Comment
   */

is no longer being indented properly after pasting. Observe:

ss

Without the comment block:

ss

So the code is being indented one level too much.

Probably related to: #5362
Possibly also related to #7256, see comments about indentation @ #7256 (comment)

Can we scoop up all these comment-block related issues and fix them up for one of the next Atom releases?

Atom version is 1.10.0-dev-f6e87b1.
I don't recall this being a problem in 1.9.x.

Activity

  1. adamreisnz commented on Jun 17, 2016

    @adamreisnz
    Author

    HTML also seems to be affected by a similar bug:

    ss

    The second and subsequent lines of the HTML get indented one level too much.

  2. hultberg commented on Jun 17, 2016

    @hultberg

    I have observed this in PHP too, thanks for creating this issue!

  3. michaelchadwick commented on Jun 23, 2017

    @michaelchadwick

    I swear this is something I've seen as a bug in lots of applications where you paste text, but now we all have a chance to fix it!

  4. adamreisnz commented on Jun 23, 2017

    @adamreisnz
    Author

    Don't get your hopes up... I've raised this issue more than a year ago, and similar ones as well. They don't have a high priority for fixing it seems.

  5. adamreisnz commented on Aug 21, 2017

    @adamreisnz
    Author

    This seems to have gotten fixed now, closing this.

  6. lock commented on Mar 31, 2018

    @lock

    This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!

  7. locked and limited conversation to collaborators on Mar 31, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions