---
title: sourceCodeFormatting()
framework: swift-package-manager
role: symbol
role_heading: Type Method
path: swift-package-manager/documentation/packagedescription/plugincommandintent/sourcecodeformatting()
---

# sourceCodeFormatting()

The plug-in formats source code.

## Declaration

```swift
static func sourceCodeFormatting() -> PluginCommandIntent
```

## Return Value

Return Value A PluginCommandIntent instance.

## Discussion

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

## See Also

### Creating a Command Intent

- [documentationGeneration()](swift-package-manager/documentation/packagedescription/plugincommandintent/documentationgeneration().md)
- [PluginCommandIntent.custom(verb:description:)](swift-package-manager/documentation/packagedescription/plugincommandintent/custom(verb:description:).md)
