---
title: indentationWidth
framework: XcodeKit
role: symbol
role_heading: Instance Property
platforms: [macOS 10.12+]
path: xcodekit/xcsourcetextbuffer/indentationwidth
---

# indentationWidth

The number of space characters used for indentation of the text in the buffer.

## Declaration

```swift
var indentationWidth: Int { get }
```

## See Also

### Configuring Source Editor Indentation

- [usesTabsForIndentation](xcodekit/xcsourcetextbuffer/usestabsforindentation.md)
- [tabWidth](xcodekit/xcsourcetextbuffer/tabwidth.md)
