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.

Paste without formatting/indentation #5046

Closed

Description

@dmnd

In #1407 @nathansobo wrote:

I wonder if we should offer a non-normalized variant of paste, like alt-cmd-v.

Opening this issue to ask for the above.

Rationale: I leave auto indentation on, and it (mostly) does the right thing, but sometimes I am moving code around that has indentation rules more complicated than Atom can understand. I'd love to have a quick way to paste the "raw" text without having Atom try to indent it. Kind of like "paste without formatting" in a spreadsheet.

An example of complicated indentation might be a docstring, or PEP8-style indenting to opening parens in Python. Ideally Atom would understand all these rules and do the right thing, but right now I often find myself re-indenting things after Atom strips them during paste.

Activity

  1. winstliu commented on Jan 14, 2015

    @winstliu
    Contributor

    👍. On Windows and Linux the keybinding would be Ctrl+Shift+V.

  2. mnquintana commented on Jan 14, 2015

    @mnquintana
    Contributor

    👍 This is pretty much what I had configured in Sublime (Cmd+Shift+V for Macs of course 😃)

  3. bronson commented on May 23, 2015

    @bronson

    Totally agree. Cmd-V should paste-and-reindent, Cmd-Shift-V paste verbatim.

    I would like it if the editor pasted, and THEN indented, in two separate steps. If I didn't like the reindenting, I could hit Undo once to get back the original text. And if I didn't want to paste at all, I could hit Undo twice.

    I think.

    This seems discoverable and doesn't require settings/modes... Any downsides?

  4. imbenclifford commented on Feb 12, 2016

    @imbenclifford

    +1 I'd love this feature too. Would be a game changer for atom.

  5. jescalan commented on Mar 3, 2016

    @jescalan

    Would also really enjoy this feature!

  6. felixkempf commented on Mar 9, 2016

    @felixkempf

    This!

  7. 1-800-jono commented on Mar 24, 2016

    @1-800-jono

    Yeah I've been looking for this functionality too.

  8. Misterdjack commented on Apr 14, 2016

    @Misterdjack

    Did we just become best friends? Yup! Wanna practice karate in the basement? Yup! Wanna paste with formatting? Yup!

  9. klarkc commented on Aug 2, 2016

    @klarkc

    Nice feature, having to switch off auto indent everytime I need plain paste is a pain

  10. jackson-sandland commented on Sep 11, 2017

    @jackson-sandland

    Can we get this feature? This is a time saver, and improves our efficiency while keeping us focused on more important lines of thought!

  11. Ben3eeE commented on Oct 24, 2017

    @Ben3eeE
    Contributor

    Closed via #15976

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions