Skip to content
This repository was archived by the owner on Dec 21, 2023. It is now read-only.

Consider using tabs instead of spaces for indentation #46

Open
vlsi opened this issue Jun 28, 2022 · 0 comments
Open

Consider using tabs instead of spaces for indentation #46

vlsi opened this issue Jun 28, 2022 · 0 comments

Comments

@vlsi
Copy link

vlsi commented Jun 28, 2022

Tabs allow better accessibility:

  • if someone needs a larger indent (e.g. to recognize the code better), they can adjust tab width
  • tab consumes 1 slot on a refreshable braille display while 4 spaces consume 4

See prettier/prettier#7475

On the other hand, the language is tuned for "4 space" indentation, so it would be nice to autoconfigure editors/viewers to "indent_size=4".

Just in case, GitHub recognizes .editorconfig indent_size = 4; indent_style = tab and it would render the file accordingly (see https://stackoverflow.com/a/33831598/1261287 )

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

No branches or pull requests

1 participant