防止/禁用 Xcode 滚动导航 [英] Prevent / Disable Xcode scroll navigation

查看:25
本文介绍了防止/禁用 Xcode 滚动导航的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

每当我在故事板模式下使用 Xcode 并使用触控板滚动时.如果我向左滚动太远,Xcode 会将我带到我正在处理的最后一个 .m/.h 文件,这太令人沮丧了.我不希望能够向左或向右滑动两个手指来在 Xcode 中导航.但我真的很喜欢 Safari 和其他应用程序的功能.

Whenever I am working with Xcode in storyboard mode and I scroll around with my trackpad. If I scroll too far to the left Xcode will take me to the last .m/.h file I was working on, and it is so frustrating. I don't want to be able to swipe two fingers left or right to navigate in Xcode. But i really like the feature for Safari and other applications.

有没有办法只为 Xcode 禁用导航滚动?

Is there a way to disable navigational scrolling only for Xcode?

推荐答案

禁用触控板:

defaults write com.apple.dt.Xcode AppleEnableSwipeNavigateWithScrolls -bool NO

要禁用 Magic Mouse:

To disable for the Magic Mouse:

defaults write com.apple.dt.Xcode AppleEnableMouseSwipeNavigateWithScrolls -bool NO

应该在下次启动 Xcode 时生效.

Should take effect the next time Xcode is launched.

这篇关于防止/禁用 Xcode 滚动导航的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆