Copy Multiple Lines from different files in Vs Code

cover-photo

Copy Multiple Lines from different files in Vs Code

blog-photo

While coding we might have felt a need copying multiple lines of code from different files and folders and paste all together in a single file. We don't have such option in our OS but our VS Code Editor provides an extension by which we can do this very easily and boost our productivity.

Copy Multiple Lines in Visual Studio Code (VS Code)

We can copy multiple lines of in Visual Studio code from different files using this extension. This amazing extension for visual studio code is Multicopy, it lets you copy and paste multiple lines.

In this post we are going to checkout an amazing extension for visual studio code Multicopy. This software extension lets you copy and paste multiple snippets of code in your workspace. We can copy multiple lines of code from different files using this extension.

This is a simple to use and handy extension which is very useful when you are working in development. It has a feature which allows to add code snippets to the memory called as stack. Then you can easily use and paste the snippets saved in the stack wherever you need. And you can anytime Delete all the saved Snippets from the stack.


blog-photo

Setup and Installation to Copy Multiple Lines in Visual Studio Code (VS Code)

  1. To copy(add code snippets to stack) you have to press cmd+shift+c (on Mac) or ctrl+shift+c (on Windows).
  2. To paste a snippet(use code snippets from stack) from the list of snippets you have to press . and you get the list of snippets.
  3. To delete all snippets, if you don't need them anymore, you have to press alt+m.


Hope you find this post useful.


Happy Coding!