Skip to main content

Command Palette

Search for a command to run...

Use Xcode Source Extensions with Key Bindings

We have the technology. We can make it better than it was. Better, stronger, faster.

Published
1 min read
Use Xcode Source Extensions with Key Bindings
M

I am a Software Engineer working on open source and enterprise mobile SDKs for iOS and MacOS developers written in Swift. From 🇩🇪 and happily living in 🇺🇸

Save time by associating a keyboard shortcut with the extension command in Xcode > Preferences... > Key Bindings menu.

In my example, I defined short ⌃⇧D for the primary command of extension SwiftPlantUML.

Note: You should choose a shortcut that does not conflict with the default binding.

Screen Shot 2022-01-24 at 9.46.34 AM.png

My shortcut allows me to quickly generate a class diagram for the currently selected source code.

Use SwiftPlantUML in Xcode with key binding

Source editor extensions can read and modify the contents of a source file and read and modify the current text selection within the editor. More cool extensions are listed in the GitHub repository awesome-xcode-extensions.

More from this blog

Dev blog post potpourri by senior software engineer Marco Eidinger

149 posts

Hello 👋🏻 , I am a Software Engineer working on open source and enterprise mobile SDKs for iOS and MacOS developers written in Swift. From 🇩🇪 and happily living in 🇺🇸