question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

I 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:closed
  • Created 6 years ago
  • Reactions:44
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

17reactions
Altugcommented, Feb 9, 2018

I support the “not supporting old browsers” approach 👍 That is the only way to progress…

0reactions
sindresorhuscommented, Feb 11, 2018

@jerolimov I don’t really see the benefit of narrowing it down. Tabs can be used outside those tags too.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found