---
title: nameKey
framework: XcodeKit
role: symbol
role_heading: Type Property
platforms: [macOS 10.12+]
path: xcodekit/xcsourceeditorcommanddefinitionkey/namekey
---

# nameKey

The name of the source editor command in its attributes.

## Declaration

```swift
static let nameKey: XCSourceEditorCommandDefinitionKey
```

## See Also

### Populating a Command Definition Dictionary

- [classNameKey](xcodekit/xcsourceeditorcommanddefinitionkey/classnamekey.md)
- [identifierKey](xcodekit/xcsourceeditorcommanddefinitionkey/identifierkey.md)
