switch - case indentation

Feb 17, 2012 at 7:14 AM

js formatter on VisualStudio2010 editor makes switch-case indentation like this:

switch (foo) {

    case: 0

    case: 1



but, JSLint and JSHint warn against this indentation. JSLint/JSHint requires:

switch (foo) {





JSLint/JSHint for VisualStudio2010 should have a option which can be selected those indentation.

Feb 22, 2012 at 9:22 AM

I think this would be a usefull feature.

Jun 20, 2012 at 9:37 AM

I want this option, too.