Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the most efficient way to cut/paste in Visual Studio?

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.

like image 520
jorsh1 Avatar asked Feb 14 '09 18:02

jorsh1


People also ask

How to copy line to next line in Visual Studio?

As @cand mentioned, you can just do Ctrl + C ; Ctrl + V . Ctrl + C will copy the line if nothing is selected.

How to select an entire line in Visual Studio?

Shift + End = Select the entire line from start to end. Shift + Home = Select the entire line from end to start.


1 Answers

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

like image 153
shoosh Avatar answered Nov 15 '22 09:11

shoosh