Como faço para desativar a quebra de linha para o arquivo fornecido?
I've tried to set:
"word_wrap": false
in User's Syntax Specific settings, but this option takes no effect.
De acordo com várias fontes on-line, deve haver uma vírgula final ,
após false.
"word_wrap": "false",
Você também pode definir a largura do envoltório para um número grande:
"wrap_width": 9999,
E também há Word Wrap: Toggle
da paleta de comando:
The
Word Wrap: Toggle
item from the Command Palette uses thetoggle_setting
command. This sets the preference directly on the view, which indeed overrides any default, user or syntax specific preferences.You can return to the user/syntax specific settings behavior by closing and reopening any files where the
Word Wrap: Toggle
item from the Command Palette was used, as the view specific settings will be lost when the file is closed. Alternatively, you could achieve the same thing without closing any files by opening the ST Python console (View menu -> Show Console) and typingview.settings().erase('word_wrap')
Enter. This will clear the view-specific setting for the active tab.You could also get it to clear the setting from all open views in the current window at once, using
[view.settings().erase('word_wrap') for view in window.views()]
Enter.
Fonte Texto sublime: quebra de linha do menu desativando as configurações específicas da sintaxe , responder por Keith Hall