Adam Tegen
Adam Tegen

Reputation: 25905

Is there a free Visual Studio extension that "drops markers" like CodeRush

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 to them in the reverse order that you dropped them.

Is there a dev studio extension that does anything similar?

Upvotes: 2

Views: 307

Answers (2)

Alex Skorkin
Alex Skorkin

Reputation: 4274

If you want, you can work around this limitation (No "Drop Marker" feature in CodeRush XPress). Here's how you can do it:

  1. 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.
  2. On the next "DXCore Project Settings" accept the defaults (click OK).
  3. Drop an Action component (DXCore section) from the Toolbox on the PlugIn1 design surface.
  4. Select the Action component and fill the "ActionName" property, e.g. "MyDropMarker".
  5. Create an event handler for the "Execute" event of this Action component.
  6. Inside this handler type this code line: "CodeRush.Markers.DropSelection();" (no quotes)
  7. Build the plug-in project.

You're almost done...

  1. Start a new instance of Visual Studio IDE.
  2. Press the CTRL+ALT+SHIFT+O to open the Options Dialog.
  3. In the tree view on the left, navigate to this folder: "IDE"
  4. Select the "Shortcuts" options page.
  5. Click on the "New Keyboard Shortcut" button.
  6. Press the key you would like to bind to the MyDropMarker action, e.g. ALT+Home
  7. Select the "MyDropMarker" action in the Command combo box.
  8. Modify the context of the shortcut if necessary (e.g. Focus\Documents\Code Editor (so it has a green tick))
  9. Save the options - click OK.

Now you have your own feature similar to the CodeRush's "Drop Marker" feature.

Upvotes: 5

Alex Skorkin
Alex Skorkin

Reputation: 4274

There's a completely free version of CodeRush called "CodeRush Xpress" - it also has markers support.

Upvotes: 0

Related Questions