Bringing IntelliJ feel of editing source files to Xcode
I spent a lot of time working in IntelliJ before Xcode and I really got used to how Alt/Option + Arrow keys working there. IntelliJ does not skip special characters or the end of a line when moving a cursor or selection between words, while Xcode just skips them and jumps right to the next word even if it's on another line. I spent some time and figured there is no such setting or key binding inside Xcode that would do similar behavior to IntelliJs, so I decided to make a Source Editor Extension named AltArrowFix
-
Open the project in Xcode
-
Product -> Archive
-
Right click on archive -> Show in Finder
-
Right click on the file in Finder -> Show Package Contents -> Products -> Applications
-
Move/copy AltArrowFix.app to Applications folder
-
Open it once and close it
-
Open System Settings -> Privacy & Security -> Extensions -> Xcode Source Editor
-
Activate AltArrowFixExtension
-
Map shortcuts for new commands in Xcode or you can use AltArrowKeyBindings.idekeybindings in the repository with my custom key bindings instead:
- Move the file to '~/Library/Developer/Xcode/UserData' folder
- Open Xcode -> Preferences -> Key Bindings
- Select AltArrowKeyBindings under Key Bindings Set
-
Enjoy