locked
How to assign Mouse button (The two side button) to view.NavigateForward and view.NavigateBackward in VS 2013 RRS feed

  • Question

  • Hello, I would like to know whether we can assign Mouse button (the two side button) to view.NavigateForward and view.NavigateBackward in VS 2013. If yes, please teach me how to do. Or not, why do not MS add this feature. Maybe you konw, when we view codes in a editor, we always unconsciously look for a reference to help us to position our focus of attention. And that cursor is competent for this job(in vi, the cursor is bigger than win-editor). So we like to view codes with mouse in a editor. Because using mouse to move cursor is more convenient than using button.

    
    
    
    
    
    
    
    
    
    
    
    
    
    Tuesday, August 4, 2015 10:37 AM

Answers

  • Hi PoplarCatkin,

    In Visual Studio 2013, there are two buttons that represent for the "View.NavigateForward" and "View.NavigateBackward" command.

    If you want to create your custom extension for the Visual Studio IDE and associate these two commands to the extension, you could try the DTE.ExecuteCommand method:

    DTE.ExecuteCommand("View.NavigateForward");
    DTE.ExecuteCommand("View.NavigateBackward");


    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click HERE to participate the survey.

    • Marked as answer by Caillen Friday, August 21, 2015 5:17 AM
    Wednesday, August 5, 2015 8:32 AM