Skip to content

XCode 4 plugin to make ⌘← shortcut move to beginning of text, not beginning of line

Notifications You must be signed in to change notification settings

ryleigh/XCode4_beginning_of_line

 
 

Repository files navigation

Description

This Xcode 4 plugin alters the 'move to beginning of line' shortcut (⌘←) so that the cursor moves to the beginning of text on the line, instead of the absolute beginning of the line. This fork simply adds support for highlighting (⌘⇧←) and deleting (⌘+Delete).

Original Description

Unfortunately the HOME (fn← and ⌘← on a Mac keyboard) key in XCode acts in a dumb way - it jumps to the first, usually whitespace, line character, so you cannot instantly jump to the first code character. Visual Studio implements this feature in a right way, jumping to the leftmost non-whitespace character on a first key press and to the beginning of line on a second, cycling between these positions on futher strokes. This plugin implements this smart behavior in XCode 4.

Installation

Download and compile the project (the plugin will be installed during build process) or download the binary and unzip it to ~/Library/Application Support/Developer/Shared/Xcode/Plug-ins/

Credits

Thanks to Dave Keck for XCode 4 Fixins project (https://github.com/davekeck/Xcode-4-Fixins)

About

XCode 4 plugin to make ⌘← shortcut move to beginning of text, not beginning of line

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Objective-C 100.0%