-
-
Save gdoudeng/df7f6303dec9a4cbf939cdb6222324e1 to your computer and use it in GitHub Desktop.
Revisions
-
b-outlaw revised this gist
May 1, 2019 . 1 changed file with 0 additions and 4 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,7 +1,3 @@ 1. Open below directory in Finder with <kbd>Cmnd</kbd> + <kbd>Shift</kbd> + <kbd>G</kbd> ``` -
b-outlaw created this gist
May 1, 2019 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,26 @@ # Xcode line duplicate #### Bind keys to duplicate lines in Xcode 1. Open below directory in Finder with <kbd>Cmnd</kbd> + <kbd>Shift</kbd> + <kbd>G</kbd> ``` /Applications/Xcode.app/Contents/Frameworks/IDEKit.framework/Versions/A/Resources/ ``` 2. Open `IDETextKeyBindingSet.plist` with a text editor (not Xcode's plist editor). 3. Add this in: ```xml <key>Insert Newline Before</key> <string>moveUp:, moveToEndOfLine:, insertNewline:</string> <key>Insert Newline After</key> <string>moveToEndOfLine:, insertNewline:</string> ``` 4. Open Xcode and go to `Xcode preferences` -> `Key Bindings` Search for "insert newline" 5. Add shortcuts for new commands.