You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Markdown ignores User settings for wordWrap #72559
*as-designedDescribed behavior is as designed*questionIssue represents a question, should be posted to StackOverflow (VS Code)markdown-extThe Markdown extension: language features and preview
Open a markdown file with long enough lines to observe word-wrapping
From #45653, i have understood that, markdown has it's own wordWrap settings; even if i turn off word-wrapping, i see that there is word-wrapping in a markdown file. So, it basically ignores general User settings
Currently i am only able to disable the default behavior by redefining the wordWrap setting again specifically for markdown files as so:
"[markdown]": {
"editor.wordWrap": "bounded",
}
But this shouldn't be necessary, can't understand why there are hidden rules just for markdown. This behavior is counter-intuitive and uncalled-for in my opinion.
Does this issue occur when all extensions are disabled?: Yes
Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines.
What you describe is the designed behavior. There is a default markdown language specific setting for word wrap as word wrap is often desired in these files even if not enabled in others
But I also think perhaps user settings should have higher priority than default language specific settings, but I don't see the big picture here, I just know it didn't make sense to set a custom user setting and not have it work in one of the languages.
Actually you made me thinking about is it not intuitive that a default value overriding a user value. Maybe the priority should be user [languageId] block -> user settings -> default [languageId] block -> default settings (If an extension really want the current behavior, it should add its [languageId] blocks to user settings).
The fact is more people in the future will go to change the word wrap settings and wonder why it doesn't apply to their Markdown files.
If you don't want to change the precedence, at least let's make it clear in the settings that some languages have a default which overrides it.
But I think it will back fire in the future, if more languages will have default settings (language specific) then a user might end up needing to write a lot of settings to override the defaults if they want it to apply to all of the languages, which is really not a good user experience.
*as-designedDescribed behavior is as designed*questionIssue represents a question, should be posted to StackOverflow (VS Code)markdown-extThe Markdown extension: language features and preview
Activity
vscodebot commentedon Apr 18, 2019
Please ask your question on StackOverflow. We have a great community over there. They have already answered thousands of questions and are happy to answer yours as well. See also our issue reporting guidelines.
Happy Coding!
mjbvz commentedon Apr 18, 2019
What you describe is the designed behavior. There is a default markdown language specific setting for word wrap as word wrap is often desired in these files even if not enabled in others
amithm7 commentedon Apr 18, 2019
Okay, can this be made more evident in the settings that word wrap is set to 'on' by default for markdown?
alexilyaev commentedon May 21, 2019
Sandeep Somavarapu (@sandy081) Matt Bierner (@mjbvz) I've just spent 30 minutes not understanding why my wordWrap settings does not take effect in Markdown files. So I totally agree with Amith Mohanan (@amithm7) that it should be noted in the settings when searching for "word wrap".
But I also think perhaps user settings should have higher priority than default language specific settings, but I don't see the big picture here, I just know it didn't make sense to set a custom user setting and not have it work in one of the languages.
sandy081 commentedon May 21, 2019
This was discussed here - #45653
alexilyaev commentedon May 22, 2019
Sandeep Somavarapu (@sandy081) Yes I know, and specifically noted by Simon Chan (@yume-chan)...
The fact is more people in the future will go to change the word wrap settings and wonder why it doesn't apply to their Markdown files.
If you don't want to change the precedence, at least let's make it clear in the settings that some languages have a default which overrides it.
But I think it will back fire in the future, if more languages will have default settings (language specific) then a user might end up needing to write a lot of settings to override the defaults if they want it to apply to all of the languages, which is really not a good user experience.
sandy081 commentedon May 23, 2019
Alex Ilyaev (@alexilyaev) Filed a feature request for it - #74195