How to disable F10 / F11 if I am not debugging Visual Studio?

So, I have this strange problem when I sometimes press keys unconsciously. F10(step over) and F11(step in) are two that I keep clicking ... or if I wanted to click F12, sometimes I accidentally hit F11...

In any case, this is a serious annoyance, since it starts assembling, which takes some time, I immediately start sending spam CTRL+ BREAKto break the assembly, but it rarely works; Does it seem like it just freezes or maybe there is only a short time window, where does it work? Then, if the build succeeds, my configuration is configured the same as the deployment, and often VS just blocks, and I have to complete the process using the task manager and restart VS.

So it’s just interesting if it is possible to only allow it F10to F11work on click, if I am debugging, where do I really need it (I use attach for the process so F5/ F10/ F11are useless shortcuts when they are not debugged)?

Thanks.

+4
source share
1 answer

You can assign the F10following C # command to Visual Commander :

    if (DTE.Mode == vsIDEMode.vsIDEModeDebug)
        DTE.ExecuteCommand("Debug.StepOver");

It will only call StepOver when you are in Debug mode. For F11use Debug.StepInto.

+3
source

Source: https://habr.com/ru/post/1628158/


All Articles