Svein Bringsli
Svein Bringsli

Reputation: 5748

A shortcut in the Delphi IDE triggers two actions

Maybe this question is very specific for me, but I'll give it a try. Here's the scenario:

  1. In Delphi XE2 the shortcut "Ctrl+Shift+7" toggles bookmark (likewise Ctrl+Shift+[1..9] for the other bookmarks)
  2. I have installed ModelMaker Tools (v. 9.1.0, but I believe I had this error earlier also), where I have assigned the shortcut "Shift+Ctrl+Alt+Y" to "Sync Declaration/Implementation".

Whenever I use the ModelMaker shortcut I also set the bookmark (7). Why is this? Note that contrary to the "real" shortcut (Ctrl+Shift+7) the bookmark isn't toggled, only set.

This behaviour puzzles me. Does anyone have an explanation? It's not a big problem, since I rarely use that many bookmarks, but it got me curious.

Upvotes: 2

Views: 507

Answers (1)

Jeroen Wiert Pluimers
Jeroen Wiert Pluimers

Reputation: 24473

For a couple of refactorings, ModelMaker Code Explorer sets some bookmarks for your convenience.

It is documented somewhere, but I forgot where (:

Edit: it is documented here.

All refactoring operations that modify the IDE edit buffers (optionally) drop bookmark #7 at the current cursor position. Similar to how Extract Method drops bookmarks #8 at the original code and #9 at the extracted method. The bookmark numbers can be customized on the History Tab which also allows disabling dropping specific bookmarks.

Upvotes: 2

Related Questions