Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 525
prosti Avatar asked May 02 '16 22:05

prosti


People also ask

How do I copy line numbers in Sublime Text?

To quickly duplicate a line of code, place the cursor anywhere in the line and hit Cmd–Shift–D(Mac) or Ctrl–Shift–D (Windows). Learn more Sublime Text Coding Tips.

How do I copy and paste in Sublime Text?

To do that -> simply press ctrl + c with the cursor anywhere on the line you wish to copy(no text-selection please) and hit ctrl + v with the cursor anywhere on the target line. The copied line will get pasted right above your target line.


1 Answers

  • Install Copy With Line Numbers Reloaded
  • Select the text you want to copy
  • Run Edit: Copy With Line Numbers from the Command Palette
  • Paste @ your target document & your code will now have line numbers
like image 174
Enteleform Avatar answered Sep 30 '22 03:09

Enteleform