views:

351

answers:

6

I find that I am cutting and pasting a LOT when I program. For example, method, variable and class names are things I regularly cut/paste. I do use "ctrl+space" after typing part of a word to autocomplete them or popup intellisense when there's duplicates found.

But just for straight copy/pasting do you guys have any good shortcuts/tricks/tips to use?

I already use these shortcuts as I program but I wonder if I am missing anything?

  • ctrl+x (with nothing selected)
  • ctrl+v (with nothing selected)
  • ctrl+l (with nothing selected)
  • ctrl+shift+arrowKeys

If I could copy/paste quicker I think I'd be able to write code quite a bit faster.

+8  A: 

In Visual Studio has multi-paste.
pressing Ctrl+Shift+V allows you to paste any of the 10 last things you cut/copied.

shoosh
+3  A: 

Install and learn ViEmu.

kotlinski
exactly what i was looking for thanks!
jorsh1
EWW EWW Why would anyone want to write code in something emulating vi?I like ViM as much as the next guy, but I don't want it to replace my editor.
Because it is a marriage made in heaven.
kotlinski
+1  A: 

I have more of a hardware solution. On my MS 4000 keyboard I have the back and forward buttons right under the space bar bound to copy and paste respectively. This actually makes copying and pasting much easier than I thought it would when I first did it.

DShook
+1  A: 

I use ClipX, which gives you system-wide multi-paste. You can paste any of the last [configurable number] of things in your clipboard. You can also save "favourite" items, which stick on the list forever.

Blorgbeard
A: 

Shift + Page Up/Down to select everything below/above the cursor.

ryeguy
A: 

If you're not using ctrl+shift+arrow to select whole words/lines, then that can help a lot.

MNGwinn