---
title: sourceCodeFormatting()
framework: packagedescription
role: symbol
role_heading: Type Method
path: 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()](packagedescription/plugincommandintent/documentationgeneration().md)
- [PluginCommandIntent.custom(verb:description:)](packagedescription/plugincommandintent/custom(verb:description:).md)
