Skip to content

Else If and For loop tabs #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jul 12, 2017
Merged

Else If and For loop tabs #9

merged 5 commits into from
Jul 12, 2017

Conversation

jwood13
Copy link
Contributor

@jwood13 jwood13 commented Jul 11, 2017

I found that when using For loops, the tab stops were in an unusual order. My natural inclination was to set the bounds of the loop, and then edit the body, but the flow was Start bound -> body -> type -> varname -> final bound, which wasn't particularly useful.

I also added an else if snippet for good measure

Copy link
Owner

@one-harsh one-harsh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Have you tested else if?

@jwood13
Copy link
Contributor Author

jwood13 commented Jul 12, 2017

Yes I have, The following code made from the snippets compiles with g++ and gcc

int main(){
    if (1 == 1)
    {
        
    }else if (1 == 1)
    {
    
    }
    return 0;
}

@one-harsh one-harsh merged commit a191b01 into one-harsh:master Jul 12, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants