I got an email from a reader last week asking about saving customisations in Visual Studio:
Hi Bill
I read an excellent article by you
http://visualstudiomagazine.com/Articles/2007/12/01/Customize-the-VB-IDE.aspx?Page=1
Just wondering if you know of a way to export those customisations so I can set up my computer at work restore after HDD fails and share my favorite settings with friends.
Also would like to do same for my VBIDE customisations
I have googled to no avail...... :-/
Well the good news is this is incredibly easy. On the Tools menu in Visual Studio you should see the āImport and Export Savings . . .ā command. You can choose what groups of settings to import or export.
This seems so incredibly long overdue, but at last as of .NET 4, IntPtr has + and ā operators added to it !!
This means you can now easily write code such as :
Dim ptr As IntPtr
. . . .
ptr += 4
this is great when dealing with offsets etc.
The actual implementation is kind of interesting. Here Iām seeing the implementation as :
Public Shared Operator -(ByVal pointer As IntPtr, ByVal offset As Integer) As IntPtr
Return New IntPtr((pointer.ToInt32 - offset))
End Function
I guess this is because it is the 32 bit version of the library. Hopefully in the 64 bit version it calls on IntPtr.ToInt64 ;)