Skip to content

Markdown ignores User settings for wordWrap #72559

Closed

Description

  • VSCode Version: 1.33.1
  • OS Version: Linux x64 4.9.0-8-amd64

Steps to Reproduce:

  1. Enable wordWrap, i did so like this:
"editor.wordWrapColumn": 120,
"editor.wordWrap": "bounded",
  1. 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

Activity

  1. added
    markdown-ext
    on Apr 18, 2019
  2. added
    *question
    on Apr 18, 2019
  3. vscodebot commented on Apr 18, 2019

    @vscodebot

    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!

  4. mjbvz commented on Apr 18, 2019

    @mjbvz
    Contributor

    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

  5. added
    *as-designed
    on Apr 18, 2019
  6. amithm7 commented on Apr 18, 2019

    @amithm7
    Author

    Okay, can this be made more evident in the settings that word wrap is set to 'on' by default for markdown?

    wordwrap

  7. alexilyaev commented on May 21, 2019

    @alexilyaev

    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.

  8. sandy081 commented on May 21, 2019

    @sandy081
    Member

    This was discussed here - #45653

  9. alexilyaev commented on May 22, 2019

    @alexilyaev

    Sandeep Somavarapu (@sandy081) Yes I know, and specifically noted by Simon Chan (@yume-chan)...

    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.

  10. sandy081 commented on May 23, 2019

    @sandy081
    Member

    Alex Ilyaev (@alexilyaev) Filed a feature request for it - #74195

  11. locked and limited conversation to collaborators on Jun 11, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

*as-designed*questionmarkdown-ext

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions