Fix `tab-size`
See original GitHub issueI would like to change the tab-size
from 8 to 4. I realize it’s not strictly a normalization, as all browsers use 8, but it would improve the experience for everyone, so I think it’s worth an exception. 8 is just a really really bad default. It has, for example, made tab-indented code on the web unreadable (https://github.com/isaacs/github/issues/170).
I propose adding the following:
:root {
-moz-tab-size: 4;
tab-size: 4;
}
Using :root
so users can easily override it on a per-element basis.
Thoughts?
(If you 👎 please also share your thoughts on why)
Issue Analytics
- State:
- Created 6 years ago
- Reactions:44
- Comments:8 (2 by maintainers)
Top Results From Across the Web
tab-size - CSS: Cascading Style Sheets - MDN Web Docs
The tab-size CSS property is used to customize the width of tab characters (U+0009).
Read more >Tab size not being respected · Issue #41542 · microsoft/vscode
Steps to Reproduce: Open a .php file and hit the Tab key. Notice it indents by 2 characters (while showing the tab arrow)....
Read more >How can I customize the tab-to-space conversion factor?
Is there a way to change tabSize per language? e.g. when editing multiple files with different languages in the same Workspace (e.g. Ruby, ......
Read more >Set tab size in Microsoft Word - Super User
Right-click on your document and then click "Paragraph". Click the "Tabs..." button (bottom left). Then change the "Default tab stops" (top ...
Read more >Fix Indentation Issue in Visual Studio Code - Webrosis.com
tabSize. But whenever VS Code opens a file, it also checks for the default indentation in that file, and tab size can be...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I support the “not supporting old browsers” approach 👍 That is the only way to progress…
@jerolimov I don’t really see the benefit of narrowing it down. Tabs can be used outside those tags too.