alt+ctrl+f4 not working on visual studio 2005? but

2019-08-29 03:29发布

In VisualStudio .net (say 2005) I have this shortcut Alt+Ctrl+F4 which closes all the opened windows. (Already mapped to window.closealldocuments) and another one Alt+Ctrl+Shift+F4 to close all but this window.

Now both shortcuts used to work on my previous workstation. Both having winxp 32.And i work on sv 2005 on both. But on this new machine, Alt+Ctrl+F4 does not seem to propagate to Visual studio, like there's some other application or the explorer mapping this key to something else, and it's not propagating the event to vs process. I know about the 'tools -> options...keyboard' in VS, but when I press the combination in the 'press shortcut keys:' field.. it would receive these combinations: Alt+Ctrl+F5->F10 but won't receive these: Alt+Ctrl+F1->F4. It's like you didn't press nothing. So now... any ideas?

3条回答
2楼-- · 2019-08-29 03:51

the problem was a process that probably was receiving the key combination and not propagating it to the rest of applications.

in my case it was hkcmd.exe (intel's graphic something ) that captures key combinations to do certain things like display rotation and such.

anyway thanks hans passant for your comment.

查看更多
可以哭但决不认输i
3楼-- · 2019-08-29 03:53

These mappings aren't hard coded. Not sure what happened, but it is easy to remap them. Just go to Tools -> Options then:

options dialog

Click in the top indicated text box, then press the key combination, and select the appropriate command for it. I like to use Ctrl + W to close the document and Ctrl + Shift + W for all.

查看更多
手持菜刀,她持情操
4楼-- · 2019-08-29 03:56

You can set any hotkeys manually in any version of visual studio, just go to Tools->Options...-> Keyboard and assign any command to keys sequence

查看更多
登录 后发表回答