Is it possible to copy code from Visual Studio and paste formatted code to OneNote?

MedicineMan picture MedicineMan · Apr 23, 2009 · Viewed 35k times · Source

Is there a way to copy code from visual studio (C#) and paste it into OneNote, without losing the formatting?

I was able to do this, but only if I copy from VS, paste to Word, copy from Word, and then paste to OneNote.

Answer

Jan Roelof picture Jan Roelof · Jul 15, 2010

There is fortunately a solution for Visual Studio 2010! Install the Visual Studio 2010 Pro Power Tools extension and copy/paste to OneNote retains syntax highlighting. Made me a happy man;)

Jan Roelof