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

Feature request: indents to space (from tabs) #44920

Closed
ghost opened this issue Mar 2, 2018 · 6 comments
Closed

Feature request: indents to space (from tabs) #44920

ghost opened this issue Mar 2, 2018 · 6 comments
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Milestone

Comments

@ghost
Copy link

ghost commented Mar 2, 2018

I usually use tabs for indents but I like the file to save indents as spaces.

In PhpStorm there is an option to convert indent to spaces:

image

Is it possible to add this option in future releases? if we can also auto save tabs to spaces that would be even better

@vscodebot
Copy link

vscodebot bot commented Mar 2, 2018

@vscodebot vscodebot bot added editor editor-autoindent Editor auto indentation issues labels Mar 2, 2018
@tsalinger tsalinger added the feature-request Request for new features or functionality label Mar 2, 2018
@ghost
Copy link
Author

ghost commented Apr 15, 2018

@tsalinger
any updates on this? thanks

@tsalinger
Copy link
Contributor

Sorry for the late response.
I think this is already in the product: https://code.visualstudio.com/docs/editor/codebasics#_indentation:
indentation-commands
Please let me know if this helps you.

@ghost
Copy link
Author

ghost commented Apr 15, 2018

@tsalinger
yeah I found that option, it is great.
can we automate this on save? so whenever I open a file which tabs are used as indents, convert them to spaces and save? or something that can be run on the entire project

@alexdima alexdima removed the editor-autoindent Editor auto indentation issues label Apr 16, 2018
@alexdima alexdima added this to the Backlog milestone Apr 16, 2018
@alexdima alexdima removed their assignment Apr 16, 2018
@SerafimC
Copy link

I think if we implement this to save replacing indentation by spaces, this should be set up somewhere.

@alexdima alexdima added the *out-of-scope Posted issue is not in scope of VS Code label Sep 20, 2018
@vscodebot
Copy link

vscodebot bot commented Sep 20, 2018

This iteration we focus on issue grooming. This issue is being closed to keep the number of issues in our inbox on a manageable level, we are closing issues that are not going to be addressed in the foreseeable future: We look at the number of votes the issue has received and the number of duplicate issues filed. More details here. If you disagree and feel that this issue is crucial: We are happy to listen and to reconsider.

If you wonder what we are up to, please see our roadmap and issue reporting guidelines.

Thanks for your understanding and happy coding!

@vscodebot vscodebot bot closed this as completed Sep 20, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature-request Request for new features or functionality *out-of-scope Posted issue is not in scope of VS Code
Projects
None yet
Development

No branches or pull requests

3 participants