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
This is intentional (lines with case or default on them will be indented once, others inside a switch body are indented twice). I've added a mode option doubleIndentSwitch in the attached patch that can be used to turn this behaviour off (set to false).
anaran
pushed a commit
to anaran/CodeMirror
that referenced
this issue
Feb 22, 2014
switch (foo) {
and hit ReturnResult: cursor is indented 4 spaces
Expected: cursor should be indented 2 spaces, as in other block statements like
if
andfor
The text was updated successfully, but these errors were encountered: