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
10
votes
2 answers

How do you customize the copy/paste behavior in Visual Studio 2008?

How do you customize the Copy/Paste behavior in Visual Studio 2008? For example I create a new
and then copy and paste it in the same file. VisualStudio pastes
instead of the original text I copied. It is…
Brian Boatright
  • 36,294
  • 34
  • 81
  • 102
10
votes
2 answers

Photoshop: Copy and paste an image without trimming transparency

I have an image fo this kind: 1000x1000 but only a portion of the image is opaque, think a filled circle on the left, other picels are transparent. I want to copy/paste only a portion of the image with an area choosed by me: I drag and drop the…
sefiroths
  • 1,555
  • 3
  • 14
  • 29
10
votes
1 answer

How is copy paste possible?

I was wondering after using computer for a long times it feels like copy paste was fundamental feature but I know it is not. So the question is how does this really work? I thought of all ideas how this could have been implemented but I get stuck…
10
votes
1 answer

Intellij - copy paste code to Onenote 2016 lost spaces with formatting

When I copy the code and comments from Intellij to Onenote. Surprisingly it lost its spaces. Is there any way to solve this problem. Please see screenshot below what I am looking for is with formatting and indentation.
Ragavan Rajan
  • 4,171
  • 1
  • 25
  • 43
10
votes
1 answer

How to copy text together with the line numbers using Sublime Text

I would like to copy text but with the line numbers in front. How to do it? I would like to paste that text after that, with the line numbers in front.
prosti
  • 42,291
  • 14
  • 186
  • 151
10
votes
3 answers

Work with ctrl-c and ctrl-v to copy and paste into a wx.Grid in wxPython

I am working on an program with a number of input tables for which I am using wxPython wx.Grid (primarily for Windows). I noticed that ctrl-c and ctrl-v to copy and paste doe snot simply work and I searched for solutions to prevent having to type in…
ROB
  • 181
  • 2
  • 12
10
votes
4 answers

How to implement the "Edit" menu with "Undo", "Cut", "Paste" and "Copy"?

Greetings, for one of my applications I'm trying to implement an "Edit" menu. This menu usually has the standard-entries Undo, Cut, Copy and Paste. This menu is not there by default, and users seem to expect it especially on Mac OS X. Is there a an…
BastiBen
  • 19,679
  • 11
  • 56
  • 86
10
votes
2 answers

how to get animated gif image from browser clipboard api?

I am testing the following code, and when I copy an animated gif and paste it to web page, I see image/png in the console - instead of image/gif as expected. Why? document.onpaste = function(event) { …
10
votes
3 answers

SharePoint list event receivers not firing when copying and pasting using explorer view

Here's the deal, I have various event receivers registered to a document library: ItemAdded ItemAdding ItemFileMoved ItemUpdating These event receivers work as expected in all cases, APART FROM copying and pasting into explorer view. It's worth…
Zarek
  • 939
  • 3
  • 13
  • 21
10
votes
5 answers

Ruby. How can I copy and paste in irb on Windows?

How can I copy and paste in irb (Interactive Ruby Shell) on Windows?
sker
  • 17,842
  • 8
  • 37
  • 41
10
votes
4 answers

How can I set text to be copied to clipboard when image is copied?

I am building a web page and have run into something that would be nice to be able to do; set text to be copied to the clipboard when someone tries to copy an image, probably the same as the alt text. Is there any way with javascript/html that this…
user1559041
10
votes
2 answers

Is there a way to catch ctrl-c and ask the user to confirm?

Powershell scripts can easily be terminated by the user pressing ctrl-c. Is there a way for a Powershell script to catch ctrl-c and ask the user to confirm whether he really wanted to terminate the script?
Andrew J. Brehm
  • 4,448
  • 8
  • 45
  • 70
10
votes
2 answers

Copy and Paste on iPhone with multiple data representations

I encountered some issues when trying to put more than one data representation onto the pasteboard on iPhone 3.0. What I'm trying to do is put a data representation and a string representation onto the pasteboard. The data is my own data type and I…
Markus Müller-Simhofer
  • 3,391
  • 1
  • 28
  • 32
9
votes
3 answers

Why sometimes when I paste a command on my bash prompt it gets executed even if I don't press Enter?

The command get executed without the need of pressing Enter. This can be dangerous sometimes... Why is that and how can I prevent it?
Alberto Zaccagni
  • 30,779
  • 11
  • 72
  • 106
9
votes
1 answer

copy paste in iterm, vim

I use iterm in Mac as my command line terminal. In iterm I use tmux as the terminal manager. When I open my code files in Vim copying has become painful in this. To copy text in vim I need to hold "option" key and then select the text. When holding…
Kai
  • 953
  • 6
  • 16
  • 37