SwiftFormat for Xcode
Nick Lockwood · An Xcode source editor extension for reformatting Swift code from the Editor menu.
- 近 30 天安裝
- 137
- App榜第 728
- 近一年安裝
- 2516
- 365 天累計
- 最新版本
- 0.64.1
- 前天 · 10月22日
- 下載大小
- 10MB
- arm64 / x86_64 · zip
- 更新節奏
- 每兩週
- 近 30 天 3 個版本
SwiftFormat for Xcode 是一款開發工具類 Mac 應用。開發者是 Nick Lockwood。
基本資訊
- 晶片
- Apple 晶片 · Intel
- 價格
- 免費 · 價格詳情
- 開發者
- Nick Lockwood
- 安裝命令
brew install --cask swiftformat-for-xcode- Homebrew
- 可以安裝,由 Homebrew 更新
- 其他名稱
- swiftformat-for-xcode
以上資訊最早核查於 。檢視各項來源
介紹
SwiftFormat for Xcode is a macOS app that provides a source editor extension for reformatting Swift code in Xcode. After launching the app and restarting Xcode, you can invoke SwiftFormat from Xcode’s Editor menu.
The extension applies SwiftFormat’s code-formatting rules, which can adjust whitespace and make other code-style changes, such as handling implicit self and redundant parentheses. Its formatting rules and options are configured in the host app. You can import or export configurations, but settings cannot be overridden per project; when switching projects, import the configuration you want to use. Changes to an imported . file must also be re-imported manually.
To install, run brew install --cask swiftformat-for-xcode, open SwiftFormat for Xcode from Applications, follow its on-screen instructions, and restart Xcode. This cask installs the Xcode extension app, not the separate swiftformat command-line package.
SwiftFormat for Xcode 的價格與購買方式
OpenNavo 按地區、版本和計費週期記錄核查過的價格,並註明來源和日期;不記錄歷史價格,也不判斷是否最低。
| 版本 | 價格 | 地區 | 購買渠道 | 核查日期 |
|---|---|---|---|---|
| — | 免費 | — | 官網raw.githubusercontent.com/nicklockwood/SwiftFormat/HEAD/README.md |
系統要求
| macOS | 應用版本 | 晶片 | 下載 | 來源 |
|---|---|---|---|---|
| 適用於 macOS 27, 26, 15, 14, 13, 12, 11 的版本 | 0.64.1 | Intel | github.com/nicklockwood/SwiftFormat/releases/download/0.64.1/SwiftFormat.for.Xcode.app.zipSHA-256 05feaa4e972255904f8d403a7cca697bfbd1b454cf567ed1928b9532e1e1ac4a | Homebrew核查於 |
| 適用於 macOS 27, 26, 15, 14, 13, 12, 11 的版本 | 0.64.1 | Apple 晶片 | github.com/nicklockwood/SwiftFormat/releases/download/0.64.1/SwiftFormat.for.Xcode.app.zipSHA-256 05feaa4e972255904f8d403a7cca697bfbd1b454cf567ed1928b9532e1e1ac4a | Homebrew核查於 |
如何在 Mac 上安裝 SwiftFormat for Xcode
- 在「終端機」中執行:
brew install --cask swiftformat-for-xcode - Homebrew 會把應用安裝到「應用程式」資料夾。
不用 Homebrew 安裝
直接下載 Homebrew 使用的同一個檔案: github.com/nicklockwood/SwiftFormat/releases/download/0.64.1/SwiftFormat.for.Xcode.app.zip
SHA-256 只用來核對下載的檔案是否完整,不代表安全認證。 檢視 SHA-256 和下載網址
解除安裝 SwiftFormat for Xcode 與可選的資料清理
brew uninstall --cask swiftformat-for-xcode普通解除安裝會刪除應用本身,設定和快取會保留。
深度清理(可選)
brew uninstall --zap --cask swiftformat-for-xcode--zap 還會刪除 Homebrew 定義裡列出的設定、快取等檔案,其中可能有其他應用共用的資料,刪除後無法恢復;它也不保證沒有任何殘留。請先備份需要保留的資料;如要保留設定和快取,請不要加 --zap。
SwiftFormat for Xcode 可能留在 Mac 上的檔案(5)
- 檔案和資料夾
~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode~/Library/Application Scripts/com.charcoaldesign.SwiftFormat-for-Xcode.SourceEditorExtension~/Library/Application Support/com.apple.sharedfilelist/com.apple.LSSharedFileList.ApplicationRecentDocuments/com.charcoaldesign.swiftformat-for-xcode.sfl*~/Library/Containers/com.charcoaldesign.SwiftFormat-for-Xcode~/Library/Group Containers/com.charcoaldesign.SwiftFormat
以上條目來自 Homebrew 定義,核查於 ;它們只說明定義宣告會刪除什麼,不代表你的 Mac 上都有。
0.64.1 更新內容
新版本 來自 Homebrew 提交記錄
這個版本沒有單獨的更新說明。
SwiftFormat for Xcode 的安全事實
這裡只列可以核驗的事實,並註明來源和日期,不是安全認證。要檢查你下載的檔案,可以用 OpenNavo 在本機掃描。
- 分發渠道
- Homebrew
- 是否開源
- 是 · github.com/nicklockwood/SwiftFormat · MIT核查於
安裝細節
- 來源倉庫
- homebrew/cask
- 下載網址
- https://github.com/nicklockwood/SwiftFormat/releases/download/0.64.1/SwiftFormat.for.Xcode.app.zip
- SHA-256
- 05feaa4e972255904f8d403a7cca697bfbd1b454cf567ed1928b9532e1e1ac4a
- Homebrew 定義檔案
- github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb
- formulae.brew.sh
- formulae.brew.sh/cask/swiftformat-for-xcode
- 原始碼
- github.com/nicklockwood/SwiftFormat
安裝與解除安裝內容
安裝
app來源檔案: SwiftFormat for Xcode.
app 宣告的目標位置: /
Applications/ for Xcode.SwiftFormat app 檢視完整宣告
{ "app": [ "SwiftFormat for Xcode.
app" ], "target": "/Applications/ for Xcode.SwiftFormat app" }清理使用者資料
zap檢視完整宣告
{ "zap": [ { "trash": [ "~/
Library/ Scripts/Application com. "~/charcoaldesign. SwiftFormat-for-Xcode", Library/ Scripts/Application com. "~/charcoaldesign. SwiftFormat-for-Xcode. SourceEditorExtension", Library/ Support/Application com. "~/apple. sharedfilelist/ com. apple. LSSharedFileList. ApplicationRecentDocuments/ com. charcoaldesign. swiftformat-for-xcode. sfl*", Library/ "~/Containers/ com. charcoaldesign. SwiftFormat-for-Xcode", Library/ Containers/Group com. ] } ] }charcoaldesign. SwiftFormat"
關於 SwiftFormat for Xcode 的常見問題
SwiftFormat for Xcode 安全嗎?
SwiftFormat for Xcode 收錄在 Homebrew 官方軟體庫中,沒有被停用。自 2026 年 9 月起,Homebrew 會停用沒有通過 macOS Gatekeeper 檢查的應用。安裝時,Homebrew 會用 SHA-256 校驗值核對來自 github.com 的安裝檔。過去 30 天,它透過 Homebrew 安裝了 137 次。
SwiftFormat for Xcode 免費嗎?
是的,SwiftFormat for Xcode 可以免費使用。來源:raw.githubusercontent.com/nicklockwood/SwiftFormat/HEAD/README.md,核查於 10月17日。
SwiftFormat for Xcode 是開源軟體嗎?
SwiftFormat for Xcode 的原始碼公開在 GitHub 上(nicklockwood/SwiftFormat),使用 MIT 授權。
如何在 Mac 上徹底解除安裝 SwiftFormat for Xcode?
執行 brew uninstall --cask swiftformat-for-xcode。要連設定和快取一起刪除,執行 brew uninstall --zap --cask swiftformat-for-xcode。--zap 還會刪除 Homebrew 定義裡列出的設定、快取等檔案,其中可能有其他應用共用的資料,刪除後無法恢復;它也不保證沒有任何殘留。請先備份需要保留的資料;如要保留設定和快取,請不要加 --zap。這會再刪除 5 處檔案和資料夾,包括 ~/。
SwiftFormat for Xcode 支援 Apple 晶片(M1 及更新)的 Mac 嗎?
Apple 晶片和 Intel 晶片的 Mac 都能用 Homebrew 安裝,兩者使用同一個安裝檔。
SwiftFormat for Xcode 的設定和資料儲存在哪裡?
資料儲存在 ~/和~/。這些位置來自 Homebrew 的清理清單。
SwiftFormat for Xcode 的最新版本是多少?
最新版本是 0.64.1,Homebrew 收錄於 10月22日。執行 brew upgrade --cask swiftformat-for-xcode 即可更新。
來源
頁面上的每項資料都註明來源和核查日期;過期的資料只寫「截至」某日,不再當作當前事實。
- Homebrew 定義:github.com/homebrew/homebrew-cask/blob/HEAD/Casks/s/swiftformat-for-xcode.rb · 核查於
- formulae.brew.sh:formulae.brew.sh/cask/swiftformat-for-xcode
- 價格:raw.githubusercontent.com/nicklockwood/SwiftFormat/HEAD/README.md · 核查於
- 安全事實:github.com/nicklockwood/SwiftFormat · 核查於