-
Notifications
You must be signed in to change notification settings - Fork 193
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
Auto detect tab/indentation width, insert tab as spaces #311
Comments
Implemented by f16ca83. The Tab Settings dialog needs translation. |
Indentation width is set to be same as tab width, so I think this is detected. |
It's might better to ignore detected tab/indentation width for binary file and diff file (them don't need to be detected), the result doesn't not make any sense:
|
Yes, it is detected. But looks ... not good ... |
A draft/PoC lifenjoiner@303c4f2 calling |
It is reasonable that: So, reset the inappropriate auto detected indentation results is reasonable, acting like manual. |
Binary file and diff file fixed by e64d89d. |
… them when one is found. issue zufuliu#311.
Issue #299 implemented global, scheme and file levels tab settings, however, tab settings for current file (by default inherited from scheme or global settings) will confusing people when they not match the actually file. It's worthy to implement some sort of auto detection to reduce the confusing.
SciTE has a 50 lines detection method (
SciTEBase::DiscoverIndentSetting()
in SciTEIO.cxx), we can port it to Notepad2 with one change: drop support for tab width = 1, which is need to reliable detect Java code contains document comments (where the space before*
is alignment space).The text was updated successfully, but these errors were encountered: