Skip to content

Instantly share code, notes, and snippets.

@anthonyherron
Created August 8, 2011 15:53
Show Gist options
  • Save anthonyherron/1132018 to your computer and use it in GitHub Desktop.
Save anthonyherron/1132018 to your computer and use it in GitHub Desktop.
Enable 3 finger swipe to switch between .h & .m in Xcode
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
@Phildo
Copy link

Phildo commented Feb 26, 2013

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

@gabu
Copy link

gabu commented Dec 10, 2013

Does it work in Xcode 5 and Mavericks?

@leonidmelnyk
Copy link

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

@mesqueeb
Copy link

mesqueeb commented Oct 4, 2024

Does it work on Xcode 16?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment