shardulm94 / vscode-trailingspaces

A VS Code extension that allows you to highlight trailing spaces and delete them in a flash!
MIT License
84 stars 21 forks source link

Ignore by extension or Ignore .*mdx #41

Closed albertcito closed 2 years ago

albertcito commented 4 years ago

I'm working with *.mdx files that is Markdown file. I added the Ignore Syntax for this kind of files and it works with .md files but not with .mdx files. Is there a way to ignore files by extension?. Thanks.

shardulm94 commented 4 years ago

@albertcito Trailing spaces uses VSCode's language identifiers for this feature. In this case, seems like VSCode does not associate .mdx files to Markdown by default. You can change the language association for mdx files to Markdown in your VSCode settings and that should fix it.

image

albertcito commented 4 years ago

That works perfect. Thank you a lot!