Questions tagged [copy-paste]

For issues relating to cut, copy, and paste operations.

The term "copy-and-paste" refers to the popular, simple method of reproducing text or other data from a source to a destination. It differs from cut and paste in that the original source text or data does not get deleted or removed. The popularity of this method stems from its simplicity and the ease with which users can move data between various applications visually – without resorting to permanent storage.

Source: Wikipedia

3477 questions
33
votes
5 answers

How to paste before the cursor after selecting a vertical block?

I'm so sure that this must exist, but if it doesn't maybe there is a macro for it... One of my most favourite features of vim is the insert before when in visual mode (, select the lines, , type a little, then Esc). My issue is that I want…
Christian
  • 3,917
  • 2
  • 23
  • 40
33
votes
1 answer

How can I force Xcode to retain my indentation when I copy and paste?

I find myself wasting so much time dealing with Xcodes auto indentation that I have to ask if there is something I just have wrong in my settings. Basically if I spend time indenting code within a method, and then copy that entire method and paste…
patrick
  • 9,290
  • 13
  • 61
  • 112
32
votes
5 answers

Integrate Emacs copy/paste with System copy/paste

I have (cua-mode t) in my .emacs, so that C-c is copy and C-v is paste just like most other programs on my desktop (Ubuntu, Gnome, Linux). However, Emacs does not seem to share the clipboard/copy buffer with other programs. For example, if I C-c in…
sligocki
  • 6,246
  • 5
  • 38
  • 47
30
votes
10 answers

Fastest way to move files on a Windows System

I want to move about 800gb of data from an NTFS storage device to a FAT32 device (both are external hard drives), on a Windows System. What is the best way to achieve this? Simply using cut-paste? Using the command prompt ? (move) Writing a batch…
Andreas Grech
  • 105,982
  • 98
  • 297
  • 360
30
votes
1 answer

Intellij-idea reverse paste into string (aka copy from string)?

In Intellij idea if you paste some text into a string literal (between double quotes) the java editor can automatically reformat the pasted text - ie to place necessary escaping characters for double quotes new lines etc. I want to do reverse, ie…
George
  • 7,206
  • 8
  • 33
  • 42
30
votes
2 answers

HTML page disable copy/paste

In a HTML page user should not be allowed to copy a text, but at the same time I want to give option for the user to select a particular text (for highlighting purpose). That means CTRL+C should be disabled and CTRL+A should be enabled. Can anyone…
R.Subramanian
  • 341
  • 1
  • 3
  • 4
30
votes
8 answers

Android copy/paste from clipboard manager

Is it possible to send past command so that it pastes text into currently focused edit text. Scenario: Background service listening for notification (done) When notification is received text needs to be copied to clipboard (done) Paste text to any…
Damir
  • 1,092
  • 4
  • 18
  • 32
30
votes
4 answers

Python command line: ignore indentation

I am new to Python. In short: During scripting I continuously want to test small bits and pieces of my programs by copying/pasting some line(s) of code from my text editor to the command line Python interpreter. When these lines are indented (for…
Joel Daroussin
  • 333
  • 4
  • 10
30
votes
2 answers

Paste multiple lines inside tags as separate line each - Sublime text

I have to set a list of title/authors item inside an html page, with each title/author line inside a
  • like this:
    • title name - author name
    • title name - author name
    • title name - author…
  • Gruber
    • 2,196
    • 5
    • 28
    • 50
    29
    votes
    5 answers

    Any Emacs command like paste-mode in vim?

    When i'm trying to paste some code from browser to Emacs, it will indent code automatically, is there any way to stop Emacs from indenting temporarily like :set paste in vim?
    ZelluX
    • 69,107
    • 19
    • 71
    • 104
    29
    votes
    9 answers

    Is there a diff tool that allows copy-paste

    Is there a diff tool that allows you to paste two segments of text and get a diff? I can't use an online tool because I'm dealing with proprietary data, and I haven't found a tool that provides that feature.
    TimeTrap
    • 1,142
    • 1
    • 14
    • 18
    29
    votes
    4 answers

    Make Ctrl+C=copy and Ctrl+Shift+C=interrupt in VSCode terminal

    I'd like to have Ctrl+C copy and Ctrl+Shift+C send Ctrl+C (interrupt). I figured out the first half { "key": "ctrl+c", "command": "workbench.action.terminal.copySelection", "when": "terminalFocus" } But how do I do the second half? Is…
    Mikel
    • 24,855
    • 8
    • 65
    • 66
    29
    votes
    4 answers

    Firefox - document.execCommand(‘cut’/‘copy’) was denied because it was not called from inside a short running user-generated event handler

    I am developing a single-page app, I have a button on the page, when a user clicks the button I would like to make an ajax call to my server, and then copy the returned value (via callback) to the user's clipboard. Each component works in…
    mils
    • 1,878
    • 2
    • 21
    • 42
    28
    votes
    4 answers

    Debugging a segmentation fault when I do ctrl c

    I get a segmentation fault when I cancel my program. I am using gdb for debugging, the problem is that when I press Ctrl-C while I am debugging gdb does not cancel the program and do what it is supposed to do that is stop it. What I want is do the…
    Eduardo
    • 19,928
    • 23
    • 65
    • 73
    28
    votes
    3 answers

    Copy text from to clipboard

    I've been trying to copy the innerContent of a to my clipboard without success: HTML JavaScript Function Call document.addEventListener('DOMContentLoaded', function () { …
    Gucci
    • 921
    • 1
    • 7
    • 27