Skip to content

Commit 156835d

Browse files
committed
Add a tip about the use of EditorConfig for indentation settings
1 parent ac82239 commit 156835d

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

documentation/Configuration.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,11 @@ The following properties are used to configure basic indentation in StyleCop Ana
6565
| `tabSize` | **4** | The width of a hard tab character in source code. This value is used when converting between tabs and spaces. |
6666
| `useTabs` | **false** | **true** to indent using hard tabs; otherwise, **false** to indent using spaces |
6767

68+
> :bulb: When working in Visual Studio, the IDE will not automatically adjust editor settings according to the values in
69+
> **stylecop.json**. To provide this functionality as well, we recommend duplicating the basic indentation settings in a
70+
> [**.editorconfig**](http://editorconfig.org/) file. Users of the [EditorConfig](https://visualstudiogallery.msdn.microsoft.com/c8bccfe2-650c-4b42-bc5c-845e21f96328)
71+
> extension for Visual Studio will no need to update their C# indentation settings in order to match your project style.
72+
6873
## Spacing Rules
6974

7075
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)