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

Infer options.useTabs when not specified #185

Open
platinumazure opened this issue Jun 14, 2015 · 1 comment
Open

Infer options.useTabs when not specified #185

platinumazure opened this issue Jun 14, 2015 · 1 comment

Comments

@platinumazure
Copy link

It would be awesome if recast inferred options.useTabs from the file contents, just like it does with options.tabWidth right now.

Right now, in a tab-indented file with useTabs not set to true, newly injected statements will be space-indented (using, I believe, a 4-space tab width by default). It would be great if useTabs were inferred as being true for newly injected statements in that case.

@platinumazure
Copy link
Author

@benjamn I've opened PR #186 as a first attempt to solve the problem, but something about the recursive print is proving to be too much for me. Any chance you could take a look and let me know if I'm missing something obvious (and/or if my approach is Just Plain Wrong)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant