Solved

Visual Studio 2013 copy code and line numbers

Posted on 2013-11-15
1
2,325 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 70

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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Run time Error 4 47
SQL Login 17 50
C# guarantee sql connection close 6 39
Call Controller Action Method from ASPX 2 13
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
Windows 10 is mostly good. However the one thing that annoys me is how many clicks you have to do to dial a VPN connection. You have to go to settings from the start menu, (2 clicks), Network and Internet (1 click), Click VPN (another click) then fi…

776 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