Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

No automatic indent after a switch or case statement #60

Open
Melodatron opened this issue Jan 10, 2015 · 3 comments
Open

No automatic indent after a switch or case statement #60

Melodatron opened this issue Jan 10, 2015 · 3 comments

Comments

@Melodatron
Copy link

When using curly brackets after a switch or case statement, the bracket line is set to having one indentation less, as there is no automatic indent after each of these keyword (as opposed to if or else).
Preferable, is that the switch and case keywords also trigger an automatic indentation.

EDIT: I use Allman-style indentation, and as such it may not affect other indentation styles.

@ghost
Copy link

ghost commented Jul 30, 2015

In my experience, atom seems only to indent after a { bracket. Which is horrible.

switch (typeof arguments[i]) {
  // atom auto-indents here
  case "one":
  // but not here
  output += arguments[i];
  break;
  case "two":
    // I manually indented
    break;
    // it doesn't un-indent here.
    case ...
}

I hate this, honestly, and so would like this issue to receive more attention.

I think, however, your reason for frustration is slightly different to mine; I'd just like atom to auto-indent after cases.

@ghost
Copy link

ghost commented Jan 25, 2016

Any updates on this?

@Ahsoka
Copy link

Ahsoka commented Feb 3, 2021

If possible can this issue be revisited? I was writing C and this issue is still present. Thank you for revisiting this issue!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants