# SwiftFormat

**URL:** https://forums.swift.org/c/related-projects/swiftformat/32.md

[Latest](https://forums.swift.org/latest.md) · [Categories](https://forums.swift.org/categories.md) · [Tags](https://forums.swift.org/tags.md)

---

## [About the SwiftFormat category](https://forums.swift.org/t/about-the-swiftformat-category/12741)

<div class="topic-metadata">

**Author:** [@Nicole\_Jacque](https://forums.swift.org/u/Nicole_Jacque)\
**Replies:** 0

</div>

SwiftFormat - A code library and command-line formatting tool for reformatting Swift code GitHub - nicklockwood/SwiftFormat: A command-line tool and Xcode Extension for formatting Swift code

---

## [Does Xcode have an internal swift-format config file?](https://forums.swift.org/t/does-xcode-have-an-internal-swift-format-config-file/81068)

<div class="topic-metadata">

**Author:** [@rayx](https://forums.swift.org/u/rayx)\
**Replies:** 3\
**Last updated:** [July 13, 2025, 10:16am UTC](https://forums.swift.org/t/does-xcode-have-an-internal-swift-format-config-file/81068 "2025-07-13T10:16:10Z")

</div>

swift-format uses 2-space indentation by default. But when invoked from Xcode, it uses 4-space indentation. I wonder why it's so? Does Xcode have an internal swift-format config file? But I can't find it. I ask about thi…

---

## [Does Swift-Format have any provisions for ignoring certain lines of code/entire files?](https://forums.swift.org/t/does-swift-format-have-any-provisions-for-ignoring-certain-lines-of-code-entire-files/53745)

<div class="topic-metadata">

**Author:** [@BrentM](https://forums.swift.org/u/BrentM)\
**Replies:** 2\
**Last updated:** [November 29, 2021, 12:44am UTC](https://forums.swift.org/t/does-swift-format-have-any-provisions-for-ignoring-certain-lines-of-code-entire-files/53745 "2021-11-29T00:44:21Z")

</div>

Title says it all. SwiftLint allows ignoring specified lines/files Is there any way to do this with swift-format?
