<!--
{
  "availability" : [
    "SwiftPM: 5.6.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "PackageDescription",
  "identifier" : "/documentation/PackageDescription/PluginCommandIntent/sourceCodeFormatting",
  "metadataVersion" : "0.1.0",
  "role" : "Case",
  "symbol" : {
    "kind" : "Case",
    "modules" : [
      "PackageDescription"
    ],
    "preciseIdentifier" : "s:18PackageDescription19PluginCommandIntentO20sourceCodeFormattingyA2CmF"
  },
  "title" : "PluginCommandIntent.sourceCodeFormatting"
}
-->

# PluginCommandIntent.sourceCodeFormatting

The plug-in formats source code.

```
case sourceCodeFormatting
```

## Discussion

The command used to modify the source code in the package based
on a set of rules. Invoked by a `format-source-code` verb to `swift package`.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)