xcodelogitech-gaming-software

How to navigate in Xcode with mouse buttons


I would like to know if there is a way to bind a mouse button to a specific keyboard shortcut in Xcode. My specific use case here is to be able to navigate by using the mouse side buttons. It is possible in vscode to Go Back with 9 and Go Forward with 0 but my side mouse button (Logitech G402) also get mapped to this action.

In Xcode, I tried setting 9 to Go Back and 9 to Go Back in Next Editor but the mouse button doesn't trigger the shortcut of the navigation action.

I know a workaround would be to create a profile in ghub only for Xcode, to bind the side button to a specific key binding and use this key binding in Xcode, but I was curious if there was another way to navigate with the mouse in Xcode.


Solution

  • Kind of a workaround, but I've managed to make this work by running the Sensible Side Buttons and GHub app side by side. Sensible Side Buttons dont have any impact on the macros I've created with GHub and XCode seems to recognize the navigation command when this app is running.

    It can be downloaded with :

    brew install --cask sensiblesidebuttons