Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request] Option to "collapse" multiline strings #1202

Open
RivenSkaye opened this issue Nov 26, 2024 · 0 comments
Open

[Feature Request] Option to "collapse" multiline strings #1202

RivenSkaye opened this issue Nov 26, 2024 · 0 comments

Comments

@RivenSkaye
Copy link

Many languages offer some form of spreading a string over multiple lines. Some using triple quotes (Python, C#, Toml, ...), others with special indicators (Rust's r#""#, C#'s @"", PHP's here- and nowdoc syntax, ...), and others do it based on specific quoting characters (JS/TS with `````) or with adding backslashes at the end of a line. Or SQL, which is valid without newlines but much more readable when using them.

Usually strings are spread across multiple lines to keep code more readable, or to prefer visual newlines over backslash escapes. It'd be nice to have a per-language option to "collapse" multiline strings in code to be counted as a single line. Alternatively (or additionally) a global flag to count it would be great as well.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant