🌐
Developer Community
developercommunity.visualstudio.com › idea › 567214 › support-max-line-length-in-editorconfig-for-visual.html
Support max_line_length in .editorconfig for Visual Studio
Skip to main content · Visual Studio · Guidelines Problems Suggestions Code of Conduct · Downloads · Visual Studio IDE Visual Studio Code Azure DevOps Team Foundation Server Accounts and Subscriptions · Subscriber Access · Microsoft Security Azure Dynamics 365 Microsoft 365 Microsoft ...
Discussions

Add support for max_line_length
Please fill-in this template. I have a question that is specific to this extension; thus, inappropriate for the main EditorConfig issue tracker. I tried running code --disable-extensions and the is... More on github.com
🌐 github.com
10
June 1, 2020
Get line wrap width from .editorconfig max_line_length instead of custom Sonar XML config
The “Line too long” rule in Sonar lint (S103 - SonarCloud) has a maximumLineLength parameter which by default is set to 200 characters. This can be overridden by using a custom Sonarlint XML for each project. If you have other formatters that read the .editorconfig settings to get the ... More on community.sonarsource.com
🌐 community.sonarsource.com
2
1
December 1, 2023
Line length enforcement for Visual Studio and dotnet format?
The standard CLI formatting tool ( dotnet format ) is not able to be configured with a max_line_length property in .editorconfig. More on learn.microsoft.com
🌐 learn.microsoft.com
1
3
September 14, 2022
c# - How to enforce line character length width? - Stack Overflow
For a .NET 6+ solution I must enforce a hard 140‑column limit on every source‑code line. Visual Studio’s ruler shows the limit, but it’s only a visual aid—it doesn’t break the build or fail CI. Wha... More on stackoverflow.com
🌐 stackoverflow.com
🌐
GitHub
github.com › editorconfig › editorconfig › wiki › Property-research:-maximum-line-length
Property research: maximum line length · editorconfig/editorconfig Wiki · GitHub
December 31, 2023 - A max_line_length option (or similarly named option) will force either hard or soft line wrapping after the amount of characters specified.
Author: editorconfig
🌐
JetBrains
jetbrains.com › help › resharper › EditorConfig_CSHARP_LineBreaksPageSchema.html
EditorConfig properties for C#: Line Breaks | ReSharper Documentation
May 26, 2024 - This option (similarly to the Editorconfig's 'max_line_length') defines the desired maximum number of characters in each line. It is applied during code reformatting if 'Wrap long lines' is enabled.
file format for defining coding styles (that is supported by various text editor plugins)
Icon for package editorconfig.core
EditorConfig is an open specification and file format for syntax highlighting, text editors and integrated development environment (IDEs) that aims to maintain a consistent coding style, particularly aimed at groups working together. … Wikipedia
Factsheet
Type of format INI configuration file
Standard spec.editorconfig.org
Open format ? Yes
Factsheet
Type of format INI configuration file
Standard spec.editorconfig.org
Open format ? Yes
🌐
EditorConfig
editorconfig.org
EditorConfig
EditorConfig files use an INI format that is compatible with the format used by Python configparser Library, but [ and ] are allowed in the section names. The section names are filepath globs (case sensitive), similar to the format accepted by gitignore. Only forward slashes (/, not backslashes) are used as path separators and octothorpes (#) or semicolons (;) are used for comments. Comments should go on their own lines.
🌐
GitHub
github.com › editorconfig › editorconfig-vscode › issues › 272
Add support for max_line_length · Issue #272 · editorconfig/editorconfig-vscode
June 1, 2020 - If not, please file on the editorconfig-core-js issue tracker. ... root = true [*.rst] indent_style = space indent_size = 3 charset = utf-8 trim_trailing_whitespace = true max_line_length = 80 insert_final_newline = true
Author: editorconfig
🌐
GitLab
gitlab.com › gitlab.org › gitlab-runner › merge requests › !3423
Set max_line_length attribute in .editorconfig (!3423) · Merge requests · GitLab.org / gitlab-runner · GitLab
This MR set max_line_length attribute in .editorconfig to match the line limit being enforced by golangci-lint. This allows editors like Vim to display a column helping to detect...
🌐
Devhints
devhints.io › apps › editorconfig cheatsheet
editorconfig cheatsheet
This example should be fine for most projects indented by 2 spaces. See: animate.css editorconfig · indent_style = {space|tab} indent_size = {4|tab} tab_width = 2 end_of_line = {cr|lf|crlf} charset = {utf-8|utf-16be|utf-16le|latin1} ...
Find elsewhere
🌐
Sonar Community
community.sonarsource.com › suggest new features
Get line wrap width from .editorconfig max_line_length instead of custom Sonar XML config - Suggest new features - Sonar Community
December 1, 2023 - The “Line too long” rule in Sonar lint (S103 - SonarCloud) has a maximumLineLength parameter which by default is set to 200 characters. This can be overridden by using a custom Sonarlint XML for each project.
🌐
Mads Kristensen
madskristensen.net › home › visual studio › building max line length: making editorconfig formatting visible in visual studio
Building Max Line Length: Making EditorConfig Formatting Visible in Visual Studio
1 month ago - Line length is one of those conventions that teams agree on easily and enforce inconsistently. EditorConfig gives us a shared vocabulary with max_line_length, but Visual Studio does not natively draw a boundary for it or apply it during formatting.
🌐
Editorconfig Guide
editorconfig.guide › doc › global › max-line-length
max-line-length — Max line length (.editorconfig)
Documentation for the .editorconfig key `max-line-length`. This option specifies the maximum allowed line length in characters. Lines longer than this…
🌐
Reddit
reddit.com › r/csharp › editorconfig or other way to control line length / wrapping/indenting style?
r/csharp on Reddit: EditorConfig Or Other Way To Control Line Length / Wrapping/Indenting Style?
January 27, 2022 - Based on conversations with other dev team leads and some managers/architects, the preference is essentially use the "Wrap every argument > Indent all arguments" style that Visual Studio has built in. Mostly I want to control for the crazy long line lengths some devs end up going with and the more automated that process can be the better. Am I missing some property in .editorconfig that would allow me to do this?
🌐
Medium
leapcell.medium.com › why-editorconfig-still-matters-even-with-prettier-around-29e414fc3e62
Why .editorconfig Still Matters Even with Prettier Around | by Leapcell | Medium
January 24, 2025 - # Mark the current directory as ... trim_trailing_whitespace = false max_line_length = off # Use tab indentation for Makefile [Makefile] indent_style = tab # Set indentation size to 2 for JavaScript files [*.js] indent_size = 2 · This example .editorconfig file demonstrates how to set ...
🌐
CSharpier
csharpier.com › docs › Configuration
Configuration | CSharpier
[*.{cs,csx}] # Non-configurable ... # end_of_line = lf - there is no 'auto' with an .editorconfig indent_style = space indent_size = 4 max_line_length = 100 [*.{config,csproj,props,slnx,targets,xaml,xml}] indent_style = space indent_size = 2 max_line_length = 100 ...
🌐
Microsoft Learn
learn.microsoft.com › en-us › answers › questions › 1007988 › line-length-enforcement-for-visual-studio-and-dotn
Line length enforcement for Visual Studio and dotnet format? - Microsoft Q&A
September 14, 2022 - Sources: https://github.com/dotnet/format/blob/main/docs/Supported-.editorconfig-options.md https://learn.microsoft.com/en-us/dotnet/fundamentals/code-analysis/code-style-rule-options?view=vs-2022 ... Hello, the Word wrap option can adjust the length of line.
🌐
Editorconfig
spec.editorconfig.org › index.html
EditorConfig Specification — EditorConfig Specification 0.17.2 documentation
Section: the lines starting from a Section Header until the beginning of the next Section Header or the end of the file. Section names in EditorConfig files are filepath globs, similar to the format accepted by .gitignore. They support pattern matching through Unix shell-style wildcards.
🌐
DeepWiki
deepwiki.com › editorconfig-checker › editorconfig-checker › 5.5-line-length-and-other-rules
Line Length and Other Rules | editorconfig-checker/editorconfig-checker | DeepWiki
December 2, 2025 - This page documents the maximum line length validation rule (max_line_length) supported by editorconfig-checker. This validation rule ensures that lines in source files do not exceed a specified character limit. For indentation and whitespace rules, see 5.2. For line ending and final newline rules, see 5.3.
🌐
GitHub
github.com › editorconfig › editorconfig › issues › 280
Redefine the behavior of `max_line_length` · Issue #280 · editorconfig/editorconfig
November 8, 2016 - Currently the max_line_length-definition states: Forces hard line wrapping after the amount of characters specified. This Definition is not applicable We had a recent discussion about the implementation of this property f.e. in sindresor...
Author: editorconfig
🌐
JetBrains
youtrack.jetbrains.com › issue › IDEA-154920
Support for max_line_length (force hard wrap) : IDEA-154920
In IntellliJ max_line_length affects the vertical right margin line. You can aslo use ij_wrap_on_typing which is IntelliJ-specific because there is no standard property like that. ... Forces hard line wrapping after the amount of characters specified. off to turn off this feature (use the editor settings). Source: https://github.com/editorconfig/editorconfig/wiki/EditorConfig-Properties#max_line_length