---
title: commandDefinitions
framework: XcodeKit
role: symbol
role_heading: Instance Property
platforms: [macOS 10.12+]
path: xcodekit/xcsourceeditorextension/commanddefinitions
---

# commandDefinitions

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

## Declaration

```swift
optional var commandDefinitions: [[XCSourceEditorCommandDefinitionKey : Any]] { get }
```

## Discussion

Discussion Implement this property when you need to override the command definitions specified in your extension target’s Info.plist file. There are no guarantees about the thread or queue on which this property is accessed.

## See Also

### Related Documentation

- [XCSourceEditorCommandDefinitionKey](xcodekit/xcsourceeditorcommanddefinitionkey.md)
