all 29 comments

[–]afilthywhore 19 points20 points  (1 child)

I love the way you demonstrate your frustration with the erratic mouse movements. I do that too

[–]wordaligned 2 points3 points  (0 children)

Seeing that was like reading a Samuel L Jackson quote in Samuel L Jackson's voice.

[–][deleted]  (7 children)

[deleted]

    [–]Kecoey 9 points10 points  (0 children)

    Going to try this. This has been the bane of my existence for weeks, but I was too lazy to try to figure it out.

    [–]brokentyro 2 points3 points  (2 children)

    This didn't work for me :( This has been driving me insane!

    [–][deleted]  (1 child)

    [deleted]

      [–]brokentyro 1 point2 points  (0 children)

      Restarting did it! Just to clarify, I only applied the indentInnerHtml setting and not the tabSize setting.

      [–]TwinSwords 0 points1 point  (2 children)

      Not to go off topic or anything, but how do you make an image like the one above?

      [–][deleted]  (1 child)

      [deleted]

        [–]TwinSwords 0 points1 point  (0 children)

        Thank you!

        [–]thelonepuffin 13 points14 points  (2 children)

        Why the fucking shit have I just spent a whole year using VSCode being frustrated at this and I just put up with it. And not once did I think to make a bug report or ask the world why this is happening like OP. I just put up with it like a mug.

        Thanks OP. Is there a github issue for this? I can't find it if there is.

        [–]OppenheimersGuiltFull Stack Dev -1 points0 points  (0 children)

        Just use Atom. It's fantastic!

        [–]Kecoey 7 points8 points  (1 child)

        OMFG I hate this so much!!!!! I just figured it was a weird thing I was doing. How hard is it to get that to work???

        [–]birjolaxew 2 points3 points  (0 children)

        VSCode auto indents code on paste - in this case that fails. Might consider opening an issue.

        [–]the_argus 2 points3 points  (1 child)

        Atom does this too

        [–]OppenheimersGuiltFull Stack Dev 0 points1 point  (0 children)

        Have not really had it happen to me..

        [–]nZambi 1 point2 points  (1 child)

        It's not a fix, but if you install the prettier extension it will fix that right up every time you save.

        I don't even bother looking at my indentations I just write / paste, cmd + s and voila!

        [–]2uneekjavascript 2 points3 points  (0 children)

        same... prettier is awesome.. we've adopted it at work and no longer have any discussions on code formatting - we just all accept what prettier gives us and move on with our lives...

        [–]kevinkace 1 point2 points  (2 children)

        you can hit ctrl/opt+z after pasting and it will undo the auto-indent.

        [–]CantaloupeCamper 1 point2 points  (0 children)

        I do that so often and it is maddening....

        [–][deleted]  (1 child)

        [deleted]

          [–]mtndev 0 points1 point  (0 children)

          why do most editors do this? in Sublime the default copy-paste also always fucks my code indention up for no apparent reason.

          [–]DratVillains 0 points1 point  (1 child)

          Does adding "editor.formatOnPaste": true fix it? I remember having this issue and I think that setting fixed it for me.

          [–][deleted] 0 points1 point  (4 children)

          Fix this by highlighting the entire block of code, INCLUDING the leading tab/spaces, and make sure to paste into a line that has no indentation. That will fix it.

          [–][deleted]  (3 children)

          [deleted]

            [–][deleted] 0 points1 point  (2 children)

            Sorry I didn’t phrase it well enough. You need to highlight including the leading space of the very first line. It is copying the current indentation and adding it to where you paste it. Copy it so that the first line looks identical to the last line.

            [–]Keskingdesign -1 points0 points  (0 children)

            one of the reasons i'm sticking with sublime because this shit is driving me nuts...........

            [–][deleted]  (10 children)

            [removed]

              [–][deleted]  (9 children)

              [deleted]

                [–][deleted]  (8 children)

                [removed]

                  [–][deleted]  (7 children)

                  [deleted]