Add comment. It was closed for 590 days. I could care less about 2 vs 4 as long as it is consistently adopted across the team on which I work. 5) it’s FASTER to tab than to 4-space. Code Indentation at 4 spaces leads to greater file size but this is obviously marginal, and as many would say the impact is not significant enough. If you work in an environment that has a standard coding style, follow that style guide. For example, one em in a 16-point typeface is 16 points. Does anyone have any idea why this is happening? Indent of 2 spaces with SwitchCase set to 2 will indent SwitchCase with 4 space with respect to switch. Well, it shouldn't be a problem if you keep your source files clean and properly use tabs for indentation. But, we don’t live in that perfectly coordinated world so spaces maintains the most fidelity — at the expense of programmers not being able to instantly customize the indentation from widths of 2,4,6,8.” Have geeks really been arguing about this for 20+ years? I find coding standards extremely important - one of the most important things one can implement on a collaborative project. The em dash (—) and em space ( ) are each one em wide.. Typographic measurements using this unit are frequently expressed in decimal notation (e.g., 0.7 em) or as fractions of 100 or 1000 (e.g., 70/100 … As Dennis noted, some official docs are using 4-space indentation. that's no space its a tab come to ruin your fucking day! can't set indent level to 4 spaces in vs 2017. fixed in: visual studio 2017 version 15.8 preview 5 windows 10.0 Visual Studio 2017 version 15.1 Fixed In: Visual Studio 2017 version 15.8. david m chinn reported Apr 13, 2017 at 11:20 PM . Tab size: 4 Indent: 4 Continuation indent: 4 I am using WebStorm 9 on Ubuntu 14.4. This issue is read only, because it has been in Closed–Fixed state for over 90 days. When I hit Save and watched it switch from 4-space to 2-space, I was struck by how much less clear the "shape of the code" (to use @evancz's term) became. Indent of tabs with SwitchCase set to 2 will indent SwitchCase with 2 tabs with respect to switch. Then everyone can set their editor to render tabs at their desired width, whether it's 2, 4, or 8 spaces. I cannot find anywhere in the Settings where the tab and indent are set to 2 spaces. Go to the end of the first line and hit 'del' then hit 'del' until the first word from the second line is 1 space away oops! I recently came across some old code that had been formatted using a previous version of elm-format that used 4-space indents (per @laszlopandy's original style guide) before the recent release switched to 2-space by popular vote.. I think at this point mostly everyone agrees on spaces instead of tabs. Show comments 12. — Compared to that, the problems mentioned in this article are irrelevant, and anyway very rare. Before making a stable elm-format release, I want to make sure that elm-format matches the official style guide and the style of official examples (including example code in the core library documentation). 6) In a file with TAB, one can know which character is used for indentation and which one for spacing. The coding standards for the code hosted in drupal.org suggest to use two spaces to indent the code; ... Tabs versus spaces—what is the proper indentation character for everything, in every situation, ever? I cannot control this. Thousands of voices scream out in terror! Therefore, this unit is the same for all typefaces at a given point size. If you’re modifying an existing codebase, follow that codebase’s style. It's ludicrous that these space-wielding heretics (to borrow from the kernel style guide) are keeping everyone from having that. Why is two-space tab indent becoming the standard? Looks like it.