Sublime Forum

Syntax Specific User Settings for "Plain Text"

#1

I set word_wrap globally off via ‘Base File.sublime-settings’ and want to enable it via syntax specific settings file. This works fine for JavaScript (via ‘JavaScript.sublime-settings’), but doesn’t work for Plain Text files (via ‘Plain text.sublime-settings’; also tried ‘Plain Text.sublime-settings’ - doesn’t work either).
Both config files are in the Packages/User directory (and found when opened via Preferences -> File Settings (More) -> Syntax Specific (User)).

Any ideas what could be causing this?

Thanks!

0 Likes

#2

I tried and it seems to be working for me (build 2165).
In my /User/Base File.sublime-settings:

{ "word_wrap": false }

and in /User/Plain text.sublime-settings:

{ "word_wrap": true }

Did you use the Preferences > File Settings – More > Syntax Specific – User menu to create the Plain text.sublime-settings file?

0 Likes

#3

[quote=“nick.”]
Did you use the Preferences > File Settings – More > Syntax Specific – User menu to create the Plain text.sublime-settings file?[/quote]

That did the trick. My original file was manually created (copied from the JavaScript Settings file). I deleted this file and used the suggested menu entry to recreate it. Now it works.

Strange: The (manually created) old file had exactly the same filename and same content as the new one. It was also found and opened by the suggested menu entry. Even when opening it via that entry, the settings had no effect.

Anyway: It works now. Thank you very much.

0 Likes