The paid version of CodeRush has a feature where you can "drop a marker" in the code and later go back to them. They work like a stack, so you can drop markers (across multiple files) and go back开发者_如何学JAVA to them in the reverse order that you dropped them.
Is there a dev studio extension that does anything similar?
If you want, you can work around this limitation (No "Drop Marker" feature in CodeRush XPress). Here's how you can do it:
- Create a new DXCore plug-in via the File -> New -> Project... -> Visual C# -> DXCore -> Standard Plug-in item. Enter name if necessary and click OK.
- On the next "DXCore Project Settings" accept the defaults (click OK).
- Drop an Action component (DXCore section) from the Toolbox on the PlugIn1 design surface.
- Select the Action component and fill the "ActionName" property, e.g. "MyDropMarker".
- Create an event handler for the "Execute" event of this Action component.
- Inside this handler type this code line: "CodeRush.Markers.DropSelection();" (no quotes)
- Build the plug-in project.
You're almost done...
- Start a new instance of Visual Studio IDE.
- Press the CTRL+ALT+SHIFT+O to open the Options Dialog.
- In the tree view on the left, navigate to this folder: "IDE"
- Select the "Shortcuts" options page.
- Click on the "New Keyboard Shortcut" button.
- Press the key you would like to bind to the MyDropMarker action, e.g. ALT+Home
- Select the "MyDropMarker" action in the Command combo box.
- Modify the context of the shortcut if necessary (e.g. Focus\Documents\Code Editor (so it has a green tick))
- Save the options - click OK.
Now you have your own feature similar to the CodeRush's "Drop Marker" feature.
There's a completely free version of CodeRush called "CodeRush Xpress" - it also has markers support.
精彩评论