Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@franko
Copy link
Contributor

@franko franko commented Nov 20, 2020

I propose a new more robust algorithm to detect the indentation size. It reads the whole file and is not fooled if a few lines use a wrong indentation. It works by looking the distribution of indentation size and use a simple heuristics to determine the best guess.

I found it useful for files where the indentation size is not strictly respected.

@quadroli
Copy link
Contributor

Just a comment, kinda intrusive how it overrides my initially set tab width, but nevertheless, cool upgrade

@franko
Copy link
Contributor Author

franko commented Nov 25, 2020

I am open to amend its behavior if you have a suggestion.

@quadroli
Copy link
Contributor

nah, not really, just wanted to point that out, some people are really religious over their tab lengths

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 this pull request may close these issues.

2 participants