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":

Screen Shot 2013-10-17 at 18.46.42.png

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).

2 comments

Hi there,

Can I set PhpStorm to strip trailing spaces on save only in Markdown files?

No -- it's IDE-wide setting that affects all file types.

http://youtrack.jetbrains.com/issue/IDEA-69051

0

Many thanks, Andriy. I have starred that issue.

0

Please sign in to leave a comment.