Can I set PhpStorm to strip trailing spaces on save only in Markdown files?
PhpStorm has a helpful feature in the editor settings to "strip trailing spaces upon save":
Is there any way to change this behaviour depending upon filetype?
I would like to strip all trailing spaces on save for all filetypes except for Markdown files (*.md), where I'd like to retain all trailing spaces – trailing spaces have special meaning in Markdown files (they denote a line break).
Please sign in to leave a comment.
Hi there,
No -- it's IDE-wide setting that affects all file types.
http://youtrack.jetbrains.com/issue/IDEA-69051
Many thanks, Andriy. I have starred that issue.