I added 5 new commands to the PowerCommands for Reflector project today and have updated the code and releases in Codeplex for the 1.1 version. There are now a total of 20 commands in the project.
Here is a summary of the new commands:
Bookmarks Menu
This command adds a Bookmarks menu to the menu bar. The functionality of the menu items are the same as the Bookmarks window ... but just quicker to get to by using a menu. When bookmarks are added or removed, the Bookmarks menu will also update.
NOTE: This command uses a lot of code and images from Peli’s Review addin – so a big thanks goes out to Peli and Lutz for letting me use their stuff.
Open With
This command is useful when you would like to open either and assembly, resource, type or member (field, property, event, or method) in an external tool. If you choose the Open With... context menu item, you will be able to choose any application that you have preconfigured to open the active item. For example: if you want to open a class's code up in Notepad, you would do the following:
- Right click on the class in the assembly browser you want to see
- Click Open With ...
- Click Add.. to set up Notepad (otherwise you could just double click on the item in the list).
- In the Add dialog, type Notepad.exe in the Application Path and Notepad for the friendly name.
- Click OK,
- Now that Notepad is in the list, choose Notepad (by either double clicking the list item or clicking OK.
Now the class code should open in notepad for you to view.
If you choose an assembly to open, the path of the assembly will be passed to the application.
If you choose a resource to open, the resource will be saved to disk and passed to the application.
If you choose a type or member, the item will be disassembled and saved to disk, then passed to the application.
Open with Paint
Ever want to open a resource up in Paint? That is what this command does, but creating saving the file to disk and opening it up in mspaint. This command can be accessed by the context menu of image resources (extensions are narrowed down to what mspaint supports).
Open with ILDasm
Sometimes you just need to open an assembly in ILDasm to see some things that Reflector doesn't show you ... now you can do this by just right clicking on the module name and choosing the Open with ILDasm context menu item. This command passes the module's location off to ILDasm to open it.
Run
This command allows you to Run an assembly that is an exe (or at least has the .exe file extension). The command is available on the context menu at the module level and will only show for exe modules.