You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a=10# 0 space indentb=5# 0 space indentifa>10: # 0 space indenta+=1# 4 space indent delta 4 spacesifb>5: # 4 space indentb+=1# 8 space indent delta 4 spacesb+=1# 8 space indentb+=1# 8 space indent# comment line 1 # 0 space indent delta 8 spaces# comment line 2 # 0 space indent# comment line 3 # 0 space indentb+=1# 8 space indent delta 8 spacesb+=1# 8 space indentb+=1# 8 space indent
There are 2 deltas of 4 spaces, and 2 deltas of 8 spaces. The indentation detector should detect 4 spaces when there is a tie in the delta counts.
alexdima
added
the
bug
Issue identified by VS Code Team member as probable bug
label
Mar 5, 2018
Issue Type
Bug
Description
Actual behavior
VS Code incorrectly determine indentation style as 8 spaces.
Expected behavior
VS Code determine indentation style as 4 spaces.
Steps to reproduce:
project.zip
VS Code Info
VS Code version: Code 1.20.1 (f88bbf9, 2018-02-13T15:34:36.336Z)
OS version: Windows_NT x64 10.0.14393
System Info
Extensions (25)
The text was updated successfully, but these errors were encountered: