Friday, August 8, 2008

CopySourceAsHTML Visual Studio 2008 AddIn

Up until now, the code I've posted has been formatted mainly with the Outlook RTF copy from VS to. After being completely frustrated with that approach (and it's poor formatting quality) I went in search of a better formatter. Enter CopySourceAsHTML AddIn. Download the ZIP

It's worth noting, I found an online code formatter called csharpformat (it also does VB, T-SQL, XML) that makes your code look like this:

Public Sub Finish()
Dim instance As New SendOrPostCallback(AddressOf UpdateList)

Me.Dispatcher.BeginInvoke(DispatcherPriority.Render, instance, Nothing)
End Sub

My code samples should now look like this:

Public Sub Finish()

Dim instance As New SendOrPostCallback(AddressOf UpdateList)

Me.Dispatcher.BeginInvoke(DispatcherPriority.Render, instance, Nothing)

End Sub


No comments: