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:
Preferences -> Settings - Syntax Specific
Then it would disable automatic trim for Markdown files. See:
Thanks! I've been using ST for years and I had totally missed this feature. Very useful.