Skip to content

Trim Trailing Whitespace shouldn't affect multiline strings #195010

@kanishkbh

Description

@kanishkbh

This is regarding the files.trimTrailingWhitespace setting.
While it is possible to set it to False for specific files e.g. markdown, there often cases where we have multiline strings in a code file.

for example:

st.info("""
Line1  
Line2
""")

When files.trimTrailingWhitespace is set to True, it would remove the two whitespaces after Line1, which breaks their markdown rendering as two separate lines.

Would be great to have this setting ignore multilines strings.

Metadata

Metadata

Assignees

Labels

editor-coreEditor basic functionalityfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions