The protocol you implement to create Xcode source editor extensions.


protocol XCSourceEditorExtension


There are no guarantees about the thread or queue on which any Xcode Source Editor Extension methods are executed, including the designated initializer.


Defining Extension Commands

var commandDefinitions: [[XCSourceEditorCommandDefinitionKey : Any]]

The array of command definitions used by Xcode to associate command names with their implementation in an extension.

Handling Extension Launches

func extensionDidFinishLaunching()

Tells the extension that it successfully launched and may begin to receive editor commands.


Inherits From

See Also

First Steps

Creating a Source Editor Extension

Add and configure a source editor extension in your Xcode project.

Testing Your Source Editor Extension

Launch a special instance of Xcode to test your source editor extension.