Solved

Visual Studio 2013 copy code and line numbers

Posted on 2013-11-15
1
2,261 Views
Last Modified: 2013-11-17
Hi experts,

I was using Visual Studio  2010 Ultimate edition.

I had found this Visual Studio add on:

CopySourceAsHtml
http://technovogeek.blogspot.com/2012/04/copy-code-and-line-numbers-in-visual.html

So with this add on when I'm working on a windows forms application and I'm working in the VB code view of a windows form page.

If I highlight my code and then right click my mouse button, then I get this menu.
If you notice the add on above added the Copy As HTML item to this menu.

copy code with line numbers menu item
So if I choose Copy As HTML and then in Microsoft Word I type Ctrl+V to paste.
It pastes my code with line numbers.

Here is a video that shows what I'm talking about:

How CopySourcesAsHtml works with Visual Studio 2010 video


This add on worked with Visual Studio 2010 Ultimate just fine.

I just upgraded to Visual Studio 2013 Ultimate but this add on doesn't seem to work.

Is there a functionality in Visual Studio 2013 Ultimate or an add-on out there that will work with Visual Studio 2013 Ultimate that the will let me copy code with line numbers and then paste it into Word just like the add-on from above?
0
Comment
Question by:maqskywalker
1 Comment
 
LVL 69

Accepted Solution

by:
Éric Moreau earned 500 total points
ID: 39653270
maybe the trick that was working for 2012 will also work with 2013: http://www.thecodeface.co.uk/post/view/Hacking-Copy-As-HTML-plugin-to-work-with-Visual-Studio-2012
0

Featured Post

Highfive + Dolby Voice = No More Audio Complaints!

Poor audio quality is one of the top reasons people don’t use video conferencing. Get the crispest, clearest audio powered by Dolby Voice in every meeting. Highfive and Dolby Voice deliver the best video conferencing and audio experience for every meeting and every room.

Join & Write a Comment

In my previous article (http://www.experts-exchange.com/Programming/Languages/.NET/.NET_Framework_3.x/A_4362-Serialization-in-NET-1.html) we saw the basics of serialization and how types/objects can be serialized to Binary format. In this blog we wi…
In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

746 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now