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
Bounded Word Wrap does not work with Markdown Language #45653
Hammy Havoc (@HammyHavoc) Yes, but [languageId] block has higher priority, and there is a default value of editor.wordWrap defined for [markdown].
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).
Simon Chan (@yume-chan) Interesting idea. But what would be priority when presence of workspace settings. Does the workspace settings override user [langId] settings too?
Activity
yume-chan commentedon Mar 16, 2018
Markdown language has it's own default value for
editor.wordWrap, you can find it under the[markdown]key.Visual Studio Code supports you to set configuration to specified languages with this
[languageId]syntax.HopefulLlama commentedon Mar 16, 2018
I was under the impression that not using the
[languageId]syntax applies the settings to all languages. Is this incorrect?yume-chan commentedon Mar 16, 2018
Hammy Havoc (@HammyHavoc) Yes, but
[languageId]block has higher priority, and there is a default value ofeditor.wordWrapdefined for[markdown].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).alexdima commentedon Mar 29, 2018
Today, we ship with:
In order to change the settings for all files, including markdown you must write:
sandy081 commentedon Apr 3, 2018
Simon Chan (@yume-chan) Interesting idea. But what would be priority when presence of workspace settings. Does the
workspace settingsoverrideuser [langId] settingstoo?cesardramirez commentedon Sep 10, 2018
File > Preferences > Settings
sandy081 commentedon Sep 11, 2018
Closing this as the fix is from the user side to provide language based settings to override.