---
title: "Discussion on \"Automatically format your Swift code when committing your work\" | Hashnode"
description: "Discussion on \"Automatically format your Swift code when committing your work\". I fell in love with  SwiftFormat as code formatter for Swift sources as it offers various way to use the tool:\n\nCommand-line tool \nXcode Source Editor extension \nXcode build phase \nGit pre-commit hook \n...\n\nI prefer the Git pre-commit hook as it ensu..."
url: "https://hashnode.com/posts/automatically-format-your-swift-code-when-committing-your-work/60327075f51caf4448562f3e"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Automatically format your Swift code when committing your work](https://blog.eidinger.info/automatically-format-your-swift-code-when-committing-your-work?utm_source=hashnode&utm_medium=feed)

I fell in love with SwiftFormat as code formatter for Swift sources as it offers various way to use the tool: Command-line tool Xcode Source Editor extension Xcode build phase Git pre-commit hook ... I prefer the Git pre-commit hook as it ensu...

Feb 21, 2021 · 4 min read · blog.eidinger.info  
Read the article

-   [#swift](https://hashnode.com/tag/swift)
-   [#ios](https://hashnode.com/tag/ios)
-   [#2articles1week](https://hashnode.com/tag/2articles1week)

## Written by

[Marco Eidinger](https://hashnode.com/@MarcoEidinger)

@MarcoEidinger

  
[View profile](https://hashnode.com/@MarcoEidinger)

#Swift #iOS SDK architect 🇺🇸 🇩🇪

I am a Software Engineer working on open source and enterprise mobile SDKs for iOS and MacOS developers written in Swift. From 🇩🇪 and happily living in 🇺🇸

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
