# \#formatting

**URL:** https://forums.swift.org/tag/formatting/885.md

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

---

## [I'm confused how to consistently format Swift code](https://forums.swift.org/t/im-confused-how-to-consistently-format-swift-code/81780)

<div class="topic-metadata">

**Author:** [@lukaszciastko](https://forums.swift.org/u/lukaszciastko)\
**Replies:** 5\
**Last updated:** [August 25, 2025, 12:01pm UTC](https://forums.swift.org/t/im-confused-how-to-consistently-format-swift-code/81780 "2025-08-25T12:01:47Z")

</div>

Hi, I’ve been trying to find a consistent way to format my code, but I’m confused how it all works… Is there a way to format code from command line in the same way Xcode (Format file with ‘swift-format’) or VS Code (Sh…

---

## [Localised formatting of UInt64 (or BigInts)](https://forums.swift.org/t/localised-formatting-of-uint64-or-bigints/67281)

<div class="topic-metadata">

**Author:** [@wadetregaskis](https://forums.swift.org/u/wadetregaskis)\
**Replies:** 5\
**Last updated:** [September 15, 2023, 6:35pm UTC](https://forums.swift.org/t/localised-formatting-of-uint64-or-bigints/67281 "2023-09-15T18:35:43Z")

</div>

It appears there's no way to render a UInt64 (or similarly large integer type) to a localised string (appropriate thousands separators etc) in the Swift standard library nor Foundation? The FormatStyle stuff (.formatted…
