Can I copy line numbers along with code in Visual Studio?

Can I copy line numbers along with code in Visual Studio?

Anonymous
Not applicable
13,819 Views
7 Replies
Message 1 of 8

Can I copy line numbers along with code in Visual Studio?

Anonymous
Not applicable

I need often to copy and paste a block of code to send it to a colleague, is there a way to copy lines numbers along with the code?

0 Likes
Accepted solutions (1)
13,820 Views
7 Replies
Replies (7)
Message 2 of 8

Keith.Brown
Advisor
Advisor
You can try https://copysourceashtml.codeplex.com/ but not sure if it works with newest release
0 Likes
Message 3 of 8

Anonymous
Not applicable
0 Likes
Message 4 of 8

Anonymous
Not applicable

Thanks, I did not say it but I am with VS2015 and these utilities don't seem to be compatible with that release. Is there any risk of trying them anyway?

0 Likes
Message 5 of 8

Anonymous
Not applicable

to be honest, i do not use this extension, and i also use vs2015, no idea, sorry. 

0 Likes
Message 6 of 8

kerry_w_brown
Advisor
Advisor

 

From memory, the installer is hard coded to look for vs2013 and earlier ... doesn't know about 2015.


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 7 of 8

Anonymous
Not applicable

seems at least that someone posted this as a request for an improve, but not much attention:

https://visualstudio.uservoice.com/forums/293070-visual-studio-code/suggestions/8487229-ability-to-c...

 

hey! Kerry, hope this find you well, happy new year sir! - Luis.-

0 Likes
Message 8 of 8

Keith.Brown
Advisor
Advisor
Accepted solution
You can also copy to notepad ++ and then auto add the link be numbers. A quick Google search will explain how.
0 Likes