Skip to content

Error codes

Mads Kristensen edited this page Jan 15, 2026 · 14 revisions

Error Codes

These are the EditorConfig error codes shown in Visual Studio's Error List. If you encounter errors that seem incorrect, please report them on the issue tracker.

EC101

Error level: Warning

A property appears multiple times in the same section. Only the last occurrence takes effect; earlier ones can safely be removed.

# ⚠️ EC101: indent_size is duplicated
[*.cs]
indent_size = 4
indent_style = space
indent_size = 2

# ✅ Correct
[*.cs]
indent_size = 2
indent_style = space

EC102

Error level: Warning

The same section header appears multiple times in the document. Consolidate properties into a single section.

# ⚠️ EC102: Duplicate section
[*.cs]
indent_size = 4

[*.js]
indent_size = 2

[*.cs]
indent_style = space

# ✅ Correct
[*.cs]
indent_size = 4
indent_style = space

[*.js]
indent_size = 2

EC103

Error level: Suggestion

The glob pattern doesn't match any files in the current directory tree. Consider removing the section or updating the pattern.

# ⚠️ EC103: No .xyz files exist
[*.xyz]
indent_size = 4

Note: This may be intentional for shared .editorconfig files used across multiple projects.


EC104

Error level: Error

.NET and C# analyzer properties require a severity when set to true.

# ❌ EC104: Missing severity
[*.cs]
dotnet_style_qualification_for_field = true

# ✅ Correct
[*.cs]
dotnet_style_qualification_for_field = true:suggestion

Valid severities: none, silent, suggestion, warning, error


EC105

Error level: Error

A property is missing its value. All properties must have a value after the = sign.

# ❌ EC105: Missing value
[*.cs]
indent_size =

# ✅ Correct
[*.cs]
indent_size = 4

EC106

Error level: Error

Only the root property is allowed outside of sections, and it must appear at the top of the document.

# ❌ EC106: Property outside section
indent_size = 4

[*.cs]
indent_style = space

# ✅ Correct
root = true

[*.cs]
indent_size = 4
indent_style = space

EC107

Error level: Suggestion

A parent .editorconfig file already defines this property with the same value in a matching section. The property is redundant and can be removed.

How to investigate: Check parent directories for other .editorconfig files that may contain the same setting.


EC108

Error level: Warning

The root property must be at the very top of the document, before any sections.

# ❌ EC108: root not at top
[*.cs]
indent_size = 4

root = true

# ✅ Correct
root = true

[*.cs]
indent_size = 4

EC109

Error level: Error

The glob pattern contains a syntax error.

# ❌ EC109: Unmatched bracket
[*.{cs,js]
indent_size = 4

# ✅ Correct
[*.{cs,js}]
indent_size = 4

Common issues:

  • Unmatched { or }
  • Unmatched [ or ]
  • Invalid character ranges

EC110

Error level: Error

Severities can only be specified for .NET and C# code style properties. Standard EditorConfig properties don't support severities.

# ❌ EC110: Severity not supported
[*.cs]
indent_size = 4:warning

# ✅ Correct
[*.cs]
indent_size = 4
dotnet_style_qualification_for_field = false:suggestion

EC111

Error level: Error

General syntax error, usually caused by text that isn't a valid section header, property, or comment.

# ❌ EC111: Invalid syntax
[*.cs]
indent_size = 4
random text here

# ✅ Correct
[*.cs]
indent_size = 4
# This is a comment

EC112

Error level: Warning

The property name is not recognized. This might be a typo or an unsupported property.

# ⚠️ EC112: Unknown property
[*.cs]
indnet_size = 4

# ✅ Correct
[*.cs]
indent_size = 4

If you believe the property should be supported, please open an issue on the issue tracker.


EC113

Error level: Warning

The severity value is not recognized by Visual Studio.

# ⚠️ EC113: Unknown severity
[*.cs]
dotnet_style_qualification_for_field = false:hint

# ✅ Correct
[*.cs]
dotnet_style_qualification_for_field = false:suggestion

Valid severities: none, silent, suggestion, warning, error


EC114

Error level: Warning

The property value is not valid for the specified property.

# ⚠️ EC114: Invalid value
[*.cs]
indent_style = spaces

# ✅ Correct
[*.cs]
indent_style = space

EC115

Error level: Suggestion

The tab_width property only needs to be specified when it differs from indent_size. If they're the same, tab_width can be removed.

# ⚠️ EC115: Unnecessary tab_width
[*.cs]
indent_size = 4
tab_width = 4

# ✅ Correct (tab_width defaults to indent_size)
[*.cs]
indent_size = 4

# ✅ Also correct (when values differ)
[*.cs]
indent_size = 4
tab_width = 8

EC116

Error level: Suggestion

When indent_style is set to tab, consider leaving indent_size unspecified. This allows editors to display tabs using each user's preferred width.

# ⚠️ EC116: Consider omitting indent_size
[*.cs]
indent_style = tab
indent_size = 4

# ✅ Alternative (lets users choose their preferred tab display width)
[*.cs]
indent_style = tab

EC117

Error level: Suggestion

Spaces in glob patterns are allowed but often indicate a typo. Verify the pattern is intentional.

# ⚠️ EC117: Space in pattern (likely typo)
[*.{cs, vb}]
indent_size = 4

# ✅ Correct (no spaces)
[*.{cs,vb}]
indent_size = 4

# ✅ Also valid (if matching files with spaces in names)
[*read me*]
indent_size = 4

Related Resources

Clone this wiki locally