Skip to content

Instantly share code, notes, and snippets.

@partlyhuman
Created November 29, 2012 02:55
Show Gist options
  • Save partlyhuman/4166476 to your computer and use it in GitHub Desktop.
Save partlyhuman/4166476 to your computer and use it in GitHub Desktop.
KeyRemap4MacBook setting to complete pending close-parens/quotes/brackets, insert semicolon, enter.
<?xml version="1.0"?>
<root>
<item>
<name>- XCode Custom Keys -</name>
<item>
<name>Fn+Return completes line with semicolon only in XCode</name>
<identifier>private.xcode.completeline</identifier>
<only>XCODE</only>
<autogen>
--KeyToKey--
KeyCode::RETURN, ModifierFlag::FN | ModifierFlag::NONE,
KeyCode::E, ModifierFlag::CONTROL_L, KeyCode::SEMICOLON, KeyCode::RETURN
</autogen>
</item>
</item>
</root>
@partlyhuman
Copy link
Author

Add the inner <item> block somewhere in your Private.xml from KeyRemap4MacBook https://github.com/tekezo/KeyRemap4MacBook

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