public

Enable 3 finger swipe to switch between .h & .m in Xcode

  • Download Gist
ThreeFinderGesturesBackInXcode.txt
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
Three finger gestures are awesome in Xcode, but they disappeared in Lion :(
 
You can bring them back to life however...
 
Inspired by a post from @gordonhughes (http://geeksinkilts.com/?p=67), explaining how to bring them back on an external trackpad, I started digging around for a way to get it working on the internal trackpads for the mbp/mba models.
 
*edit*
Perhaps an easier way of doing this found by @gordonhughes again is just this 1 line in Terminal, haven't confirmed this yet though
 
defaults -currentHost write -g "com.apple.trackpad.threeFingerVertSwipeGesture" -int 1
***
 
In Terminal:
 
1. cd /Users/USERNAME/Library/Preferences/ByHost // replace with username
2. ls -lah // will list files, you're looking for a hidden a file name something like this unique string .GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist
3. open -a /Developer/Applications/Xcode.app ".GlobalPreferences.XXXX-XXXX-XXXX-XXXX.plist" // replace filename with your file
4. this will open the plist editor in Xcode, set value to 1 for the key "com.apple.trackpad.threeFingerVertSwipeGesture"
5. Check there are no gesture clashes in System Preferences
6. Restart the machine
7. Enjoy

I can confirm the one line terminal command works (along with a restart of the machine). Thanks!

Does it work in Xcode 5 and Mavericks?

Yes, it works fine for xcode 5 on Mavericks :)

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.