Sublime Forum

Does Sublime ignore the word_wrap setting on long lines?

#1

I have word_wrap set to true for JSON files, and most of the time word-wrap works as expected. However, if I have a JSON file with a very long line (150,000 characters), it won’t wrap automatically. But if it’s fewer (75,000 characters), Sublime obeys the setting and wraps properly.

Is this intended behavior? Is there a way to override this?

0 Likes

#2

Word wrap is automatically enabled if the average line size is larger than 128k. Large lines have various performance issues hence why this limit was added in ST4. You can still manually disable it after the file has loaded.

1 Like