Using Tab as indentation in code is not a good habit, because Tab is not a print character but a control character, that is to say, the display width in different text editors is not necessarily the same, so the display effect is prone to inconsistency. Space is a good fit, because it is a common character, so it is subject to the same effect as other characters, and the display effect will be consistent.
For those who use Tab as indentation, It is very convenient to delete an indent unit at a time. If a Tab corresponds to four spaces, it is inconvenient to delete four spaces if you want to delete an indent unit.
In fact, many text editors, including Visual Studio, support Tab and space conversion.The shortcut keys Tab and Shift + Tab can insert or delete four spaces at a time., The same effect as using Tab for indentation.
This will not cause any inconvenience if you use spaces for indentation.
--Kevin Yang