I like to have trailing whitespace trimmed for most files I edit. But Markdown uses two spaces at the end of a line for a manual line break.
Is there a way to turn off whitespace trimming just for Markdown syntax?
I like to have trailing whitespace trimmed for most files I edit. But Markdown uses two spaces at the end of a line for a manual line break.
Is there a way to turn off whitespace trimming just for Markdown syntax?
Yes, you can open a Markdown
file, then go to the menu Preferences -> Settings - Syntax Specific
, then you can set:
"trim_automatic_white_space": false,
Then it would disable automatic trim for Markdown
files. See:
For references.
Thanks! I’ve been using ST for years and I had totally missed this feature. Very useful.