Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
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 (, 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.
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 "" -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/ ".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 ""
5. Check there are no gesture clashes in System Preferences
6. Restart the machine
7. Enjoy

Phildo commented Feb 26, 2013

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

gabu commented Dec 10, 2013

Does it work in Xcode 5 and Mavericks?

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

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