Trackpad gesture to switch to header/source

2019-01-08 09:33发布

I used to be able to use three finger scroll-up to switch between source/header. Since upgrading to Lion, I it just does a regular scroll. Is there any way to get that feature back?

Aka, it doesn't jump to counterpart when I scroll up / down like it used to.

Update

Apple fixed the issue in Xcode 4.2. So, upgrade your versions.

9条回答
叼着烟拽天下
2楼-- · 2019-01-08 09:53

Given apple took this away (hopefully just for now) the only way I can think of to get this working again would be to install BetterTouchTool[1] and bind the keyboard control - control-cmd-up, ctrl-cmd-down - to the three finger motion. You'd also have to switch the default three finger motion in sys prefs to use four fingers for mission control.

[1] http://blog.boastr.net/

查看更多
劳资没心,怎么记你
3楼-- · 2019-01-08 10:01

As found in internet:

defaults -currentHost write -g "com.apple.trackpad.threeFingerVertSwipeGesture" -int 1

Logout and Login again

查看更多
Summer. ? 凉城
4楼-- · 2019-01-08 10:04

The answer from icnivad was so very close to working for me. With one additional step.

From your terminal:

Change to appropriate directory (note, if your Library dir is hidden, in the terminal just type the following: chflags nohidden ~/Library )

1. cd /Users/YOURUSERNAME/Library/Preferences/ByHost

List files so you can see the .GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist

2. ls -lah

Open that plist file in xcode

3. open -a /Developer/Applications/Xcode.app ".GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist"

Set value to 1 for the key "com.apple.trackpad.threeFingerVertSwipeGesture"

Save the plist file

Restart machine

THEN

Make sure the "Three finger drag" System Preference is disabled. This seems to take precedence and stop the Xcode gesture from working.

查看更多
The star\"
5楼-- · 2019-01-08 10:04

Apple fixed the issue in Xcode 4.2. So, upgrade your versions.

Have fun coding and mind the occasional crash.

查看更多
来,给爷笑一个
6楼-- · 2019-01-08 10:05

I think the reason Apple removed the h/m 3-finger swipe is because they expect you to use the "Assistant" editor, which displays the h and m files together, side by side. This works, sort of, on a wide screen, although it is an inefficient use of space. But when you're on the road with a MacBookAir, it's a major handicap. Xcode4 feels like a straitjacket.

查看更多
不美不萌又怎样
7楼-- · 2019-01-08 10:06

This worked for me in Mountain Lion, XCode 4.6: a busy cat http://monosnap.com/image/iakMgffAeOtp9G04qLdsnb3v5

查看更多
登录 后发表回答