Thursday 15 April 2010

Xcode 6 Copy Line/Cut Line keybindings -



Xcode 6 Copy Line/Cut Line keybindings -

i have started development swift xcode 6. i've used sublime text 3 lastly couple years, , more have fallen in love github's atom editor. biggest frustration far xcode lack of copy/cut line tool.

in text editors i've used copy/cut commands copy/cut whole line if no selection made.

so far alternative have found following:

ctrl + - move cursor origin of line shift + ↓ - select line ctrl + c - re-create selection

this works, i'm wondering if has figured out elegant way wrap these 1 powerful copy/cut line tool

on side note, missing move line up/down shortcuts useful.

note: solution described in this answer no longer works in xcode 6.

from terminal cd / machd , go applications,otherwise won't of applications in list. open file /applications/xcodebeta.app/contents/frameworks/idekit.framework/resources/idetextkeybindingset.plist sudo privileges (be sure utilize right app-directory version of xcode using---for xcode 6.3 beta mine xcode-beta.app). can utilize open . in terminal when desired location in finder

now add together next section:

<key>my custom commands</key> <dict> <key>cut current line</key> <string>selectline:, cut:</string> <key>copy current line</key> <string>selectline:, copy:</string> </dict>

restart xcode , in keybindings section should able search cutting current line , re-create current line , set custom keybindings them. format of creating commands pretty simple , intuitive.

xcode

No comments:

Post a Comment