开发者

MS-VS2008 Keyboard mapping problem

开发者 https://www.devze.com 2023-02-22 06:07 出处:网络
I am trying to set my own hotkey combination for the action Edit.FindNext in visualstud开发者_StackOverflow中文版io 2008 under:

I am trying to set my own hotkey combination for the action Edit.FindNext in visualstud开发者_StackOverflow中文版io 2008 under:

Tools.Customize -> Keyboard

but these simply dont take effect, so as soon as i close the dialog my VS keeps working with the default combination: Ctrl + F3, and the one i set is just ignored, although its still set in the configuration.

restart didnt help.

Any ideas?

Thank you.


I found the problem,

i tried to set the Ctrl + Left Arrow for the find next action but the Left-Arrow can not be used in global as microsoft states:

The following keys cannot be assigned to a command in Global: PRINT SCRN/SYS RQ, SCROLL LOCK, PAUSE/BREAK, TAB, CAPS LOCK, INSERT, HOME, END, PAGE UP, PAGE DOWN, Windows logo keys, Application key, any of the ARROW keys, or ENTER; NUM LOCK, DEL, or CLEAR on the numeric keypad; or CTRL+ALT+DELETE.

so i had to set this to the texteditor context, and it worked.


Setting a hotkey in VS can be tricky. Be aware of the following: The same hotkey can be used for different things, depending on the context.
For example, it is possible, that you defined the hotkey for "Global", but for "Text Editor" your default hotkey is still registered and the new one might even be registered for something else in the context of "Text Editor". So when you enter your new hotkey, check out the Combobox "Shortcut currently used by", maybe it will show you what the problem is.

0

精彩评论

暂无评论...
验证码 换一张
取 消