问题
i've created binding for Visual Studio's Edit.BriefBookmarkDropx
commands:
Edit.BriefBookmarkDrop1
: Ctrl+Shift+1Edit.BriefBookmarkDrop2
: Ctrl+Shift+2Edit.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