Skip to content

Commit 9afc940

Browse files
committed
Update Configuration.md to include the new indentation properties
1 parent fd7e631 commit 9afc940

1 file changed

Lines changed: 24 additions & 0 deletions

File tree

documentation/Configuration.md

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,30 @@ For best results, **stylecop.json** should be included in source control. This w
4141
> [Ss]tyle[Cc]op.*
4242
> ```
4343
44+
## Indentation
45+
46+
This section describes the indentation rules which can be configured in **stylecop.json**. Each of the described
47+
properties are configured in the `indentation` object, which is shown in the following sample file.
48+
49+
```json
50+
{
51+
"settings": {
52+
"indentation": {
53+
}
54+
}
55+
}
56+
```
57+
58+
### Basic Indentation
59+
60+
The following properties are used to configure basic indentation in StyleCop Analyzers.
61+
62+
| Property | Default Value | Summary |
63+
| --- | --- | --- |
64+
| `indentationSize` | **4** | The number of spaces to use for a single indentation when `useTabs` is **false**. |
65+
| `tabSize` | **4** | The width of a hard tab character in source code. This value is used when converting between tabs and spaces. |
66+
| `useTabs` | **false** | **true** to indent using hard tabs; otherwise, **false** to indent using spaces |
67+
4468
## Spacing Rules
4569

4670
This section describes the features of spacing rules which can be configured in **stylecop.json**. Each of the described properties are configured in the `spacingRules` object, which is shown in the following sample file.

0 commit comments

Comments
 (0)