-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Add ability to customize tab size #14225
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
Comments
We don't need a separate option, users should just commit a |
Well, already the fact that many/most people don't know about that, speaks against it in my opinion. |
Should we also make separate config for line length? And whether it's tab or space? How about using tab/space differently for different files ( These are rhetorical questions really, as you can see, Gitea is not a place to handle this for you. |
I think this will just add eafen more complex code :/ - |
Closing as there is an established standard and we shouldn't compete with it |
Description
Many projects and files use different tab sizes: The preferred ones are 2, 4 and 8.
And yet, there is currently no option to customize this for each file in a Pull Request, or when viewing the raw source code inside the file tree.
It would be nice if users could customize themselves how many spaces a tab should represent.
As far as I'm aware, currently only setting the tab size globally using hard-coded values (see #9071) is supported.
What to implement
Both options must not be persisted, simply calling them with a default value should be enough.
The text was updated successfully, but these errors were encountered: