如何使用鼠标按钮在XCode中导航

发布于 2025-01-22 09:21:27 字数 507 浏览 3 评论 0原文

我想知道是否有一种方法可以将鼠标按钮绑定到XCode中的特定键盘快捷键。我的特定用例是能够使用鼠标侧按钮导航。在vscode中,可以使用 9 9 和进行进行向前使用 0 但我的侧鼠标按钮(Logitech G402)也被映射到此操作。

在Xcode中,我尝试设置 9 to 返回 < < < < < < kbd> 9 返回下一个编辑器,但鼠标按钮不会触发导航操作的快捷键。

我知道解决方法是仅在Xcode中创建一个在GHUB中创建一个配置文件,将侧面按钮绑定到特定的键绑定并在Xcode中使用此键绑定,但是我很好奇是否有另一种方法可以在Xcode中使用鼠标导航。

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.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

翻了热茶 2025-01-29 09:21:27

有点解决方法,但是我设法通过运行

它可以下载:

brew install --cask sensiblesidebuttons

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
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文