Trackpad gesture to switch to header/source

后端 未结 10 1936
名媛妹妹
名媛妹妹 2020-12-02 11:14

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 fea

相关标签:
10条回答
  • 2020-12-02 12:03

    This stopped working for me in MacOS Big Sur and the plist changes recommended here didn't fix it for me.

    What finally fixed it for me was to go to

    System Preferences > Trackpad > More Gestures

    and change the setting for "Swipe between pages" to "Swipe with two or three fingers". I suspect setting it to "Swipe with three fingers" would also work.

    0 讨论(0)
  • 2020-12-02 12:07

    This is the correct and best answer. It works. It is posted by "@Buyin" above. Another individual commented that it doesn't work. He is wrong. It works, I've confirmed it. It restores the three finger vertical swipe to switch between interface and implementation files (.h and .m) in xCode in Lion.

    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 /Applications/Xcode.app ".GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist"
    

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

    Save the plist file

    Log out and back into machine

    VOILA!

    0 讨论(0)
  • 2020-12-02 12:09

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

    0 讨论(0)
  • 2020-12-02 12:17

    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.

    0 讨论(0)
提交回复
热议问题