Copying multiple code blocks together and paste them one by one

How many times do you navigate from one file to another multiple times to copy and paste small parts of code?
Especially during a refactoring?

There is a feature in Visual Studio 2022 called “Clipboard Ring” that can really help you.

How it …


This content originally appeared on DEV Community and was authored by Emanuele Bartolesi

How many times do you navigate from one file to another multiple times to copy and paste small parts of code?
Especially during a refactoring?

There is a feature in Visual Studio 2022 called "Clipboard Ring" that can really help you.

How it works

You can start to copy (or cut) the code blocks with the usual key combination Ctrl+C or Ctrl+V

Instead of paste che code with the key combination Ctrl+V, paste them using Ctrl+Shift+V.

A dropdown appears close to the cursor with the list of your clipboard history from Visual Studio.
Now you can click directly to an item or you can use the number of the line that you want to paste.

That's all!

Image description


This content originally appeared on DEV Community and was authored by Emanuele Bartolesi


Print Share Comment Cite Upload Translate Updates
APA

Emanuele Bartolesi | Sciencx (2022-02-10T07:51:18+00:00) Copying multiple code blocks together and paste them one by one. Retrieved from https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/

MLA
" » Copying multiple code blocks together and paste them one by one." Emanuele Bartolesi | Sciencx - Thursday February 10, 2022, https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/
HARVARD
Emanuele Bartolesi | Sciencx Thursday February 10, 2022 » Copying multiple code blocks together and paste them one by one., viewed ,<https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/>
VANCOUVER
Emanuele Bartolesi | Sciencx - » Copying multiple code blocks together and paste them one by one. [Internet]. [Accessed ]. Available from: https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/
CHICAGO
" » Copying multiple code blocks together and paste them one by one." Emanuele Bartolesi | Sciencx - Accessed . https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/
IEEE
" » Copying multiple code blocks together and paste them one by one." Emanuele Bartolesi | Sciencx [Online]. Available: https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/. [Accessed: ]
rf:citation
» Copying multiple code blocks together and paste them one by one | Emanuele Bartolesi | Sciencx | https://www.scien.cx/2022/02/10/copying-multiple-code-blocks-together-and-paste-them-one-by-one/ |

Please log in to upload a file.




There are no updates yet.
Click the Upload button above to add an update.

You must be logged in to translate posts. Please log in or register.