How to drop a Brief bookmark in Visual Studio?

我们两清 提交于 2019-12-07 06:44:49

问题


i've created binding for Visual Studio's Edit.BriefBookmarkDropx commands:

  • Edit.BriefBookmarkDrop1: Ctrl+Shift+1
  • Edit.BriefBookmarkDrop2: Ctrl+Shift+2
  • Edit.BriefBookmarkDrop3: Ctrl+Shift+3
    ...
  • Edit.BriefBookmarkDrop9: Ctrl+Shift+9

Using Tools -> Options -> Keyboard:

Except that when i hit Ctrl+Shift+2, nothing happens:

i know Microsoft likes to obfuscate Visual Studio features. What's the secret trick that i'm missing?


Note: i am installed DPack into Visual Studio Professional - an addon that provides brief bookmarks (and a number of other essential features). Do not confuse this for an answer to my question:

  • you cannot install addons into Visual Studio Express
  • you cannot install addons into the Visual Studio Shell
  • my question isn't about addons

Bonus Reading

  • MSDN: How to: Use Bookmarks with Brief Emulation (Visual Studio 2008)
  • Numbered Bookmarks addon for Visual Studio 2005
  • DPak Numbered Bookmarks

回答1:


It took four years, but i figured it out. Everything i was doing was correct. The only issue is that Visual Studio is stupid. Here's how to configure Visual Studio to drop a Brief bookmark:

How's that different from what i showed in the question?

  • Fails Use new shortcut in: Global
  • Works Use new shortcut in: Text Editor

By default any keys you bind in the Global space do nothing.

Which begs the question why the option is there, and the default? But usability is not something Visual Studio team prides itself on.



来源:https://stackoverflow.com/questions/7982970/how-to-drop-a-brief-bookmark-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!