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

# tabWidth

The number of space characters represented by a tab character in the buffer.

## Declaration

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

## See Also

### Configuring Source Editor Indentation

- [indentationWidth](xcodekit/xcsourcetextbuffer/indentationwidth.md)
- [usesTabsForIndentation](xcodekit/xcsourcetextbuffer/usestabsforindentation.md)
