Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Per-Syntax settings #3533

Closed
spywhere opened this issue Feb 28, 2016 · 4 comments
Closed

Per-Syntax settings #3533

spywhere opened this issue Feb 28, 2016 · 4 comments
Assignees
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Milestone

Comments

@spywhere
Copy link
Contributor

TL;DR: Add settings support for per-syntax or improve the Markdown syntax settings recognition.

Problems:
In my project development, I usually works across different file types. Each of them is work a bit different than the another.

Let say I have a .js (JavaScript) file and some .md (Markdown) file. When I works with .js file, I want to trim of the whitespace at the end of each line while when I works with .md file, I want the VSCode to keep the whitespace at the end of line as-is () since the markdown syntax use double-spaces at the end of line to indicate line break. When I enabled files.trimTrailingWhitespace, I cannot save the file without remove these trailing whitespace on .md file and that is annoying to me.

Also, this is just a simple usage example of this feature. There are many cases that this feature would solve them easily.

Possible Solutions:

  • Implement per-syntax settings so each file type can be configured differently (preferred).
  • Implement the "smart settings" where if you works with (let says) Markdown file and there are double-spaces at the end of line (or just any language feature at similar to this) with files.trimTrailingWhitespace turn on, VSCode will not trim those lines.
@joaomoreno joaomoreno added the feature-request Request for new features or functionality label Mar 1, 2016
@joaomoreno
Copy link
Member

@bpasero bpasero added this to the Backlog milestone Mar 1, 2016
@egamma
Copy link
Member

egamma commented Mar 3, 2016

@spywhere can you pls try vscode-editorconfig extension and see whether it covers your needs.

@spywhere
Copy link
Contributor Author

spywhere commented Mar 3, 2016

@egamma That's cover my need. However, I didn't see it working on my project. I hope I'm not configured it wrong.

@bpasero
Copy link
Member

bpasero commented Aug 15, 2016

#1587

@bpasero bpasero closed this as completed Aug 15, 2016
@bpasero bpasero added the *duplicate Issue identified as a duplicate of another issue(s) label Aug 15, 2016
@vscodebot vscodebot bot locked and limited conversation to collaborators Nov 18, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
*duplicate Issue identified as a duplicate of another issue(s) feature-request Request for new features or functionality
Projects
None yet
Development

No branches or pull requests

4 participants