What do smart tabs do in WebStorm / PHPStorm?

I am confused by what smart tabs do in general preferences.

It states that:

Exact alignment to the desired column is performed only through spaces ... If this check box is not selected, then spaces are used to align, if necessary ...

Does this mean that spaces are used for alignment for both cases? Does this mean that he always uses spaces in the last and only sometimes in the first?

Can someone illustrate an example of two cases?

+43
formatting webstorm phpstorm tabs
Nov 26 '12 at 13:00
source share
1 answer

If the smart tabs option is enabled, spaces are used for alignment, tabs and spaces of others are used.

for example: for the following code code

function(first, second) { } 

no smart tabs

 t---function(first, t---t---t---.second) { t---} 

with smart tabs

 t---function(first, t---.........second) { t---} 
+49
Apr 11 '13 at 18:57
source share



All Articles