Changing Ctrl + Tab behavior for moving between documents in Visual Studio

前端 未结 13 504
半阙折子戏
半阙折子戏 2020-11-28 17:39

Is it possible to change how Ctrl + Tab and Shift + Ctrl + Tab work in Visual Studio? I have disabled the popup naviga

相关标签:
13条回答
  • 2020-11-28 18:24

    I don't use Visual Studio (yes, really, I don't use it), but AutoHotkey can remap any hotkey globally or in a particular application:

    #IfWinActive Microsoft Excel (application specific remapping)
    
    ; Printing area in Excel (@ Ctrl+Alt+A)
    ^!a::
    Send !ade
    return
    
    #IfWinActive
    
    
    $f4::
    ; Closes the active window (make double tapping F4 works like ALT+F4)
    if f4_cnt > 0 
    {
        f4_cnt += 1
        return
    }
    
    f4_cnt = 1
    SetTimer, f4_Handler, 250
    return
    
    f4_Handler:
    SetTimer, f4_Handler, off
    
    if (f4_cnt >= 2)    ; Pressed more than two times
    {   
        SendInput !{f4}
    } else {
        ; Resend f4 to the application
        Send {f4}
    }
    
    f4_cnt = 0
    return
    

    These are two remappings of my main AutoHotKey script. I think it's an excellent tool for this type of tasks.

    0 讨论(0)
提交回复
热议问题