Last modified at 11/2/2013 9:24 PM by Koen Zomers

‚ÄčOne of my favorite add-ins for Visual Studio has been JetBrains ReSharper for many years already. It is paid, but in my opinion it's surely worth the money and does contribute to writing better code and learning more about programming efficiently. I know there's a lot of magic in this tool that I don't know about yet. One of my customers recently pointed out one of those hidden features which has directly made it to my personal top 5 greatest ReSharper features. What it does is enable real-time decompilation of 3rd party code, including the Microsoft standard ones. So no longer will you need tools like ILSpy to dig into the dungeons of the SharePoint framework to find out how an object is being handled, you can simply use the standard Go to Definition (F12) option to go right to the sourcecode of that particular SharePoint class. A-w-e-s-o-m-e! :)

How to enable it

  1. I assume you already have Visual Studio 2010 or 2012 installed along with a recent version of JetBrains ReSharper

  2. Open Visual Studio and in the top menu, navigate to RESHARPER and then click on Options

  3. In the left bar with options, scroll all the way down to locate the option External Sources and click on it

  4. Enable the option Decompile methods and hit Save at the bottom

  5. Accept the Decompiler Legal Notice that follows

  6. Now when for example right clicking on a SharePoint object (SPSite in this case) and going to Go to Declaration (or pressing F12):

    Visual Studio will real-time decompile the SharePoint assembly containing the SPSite class and show it as normal code:


    Did I say awesome already? :)

Thanks to Kjetil Gullen for sharing this magic!