Skip to content
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

"Indentation: Reindent lines" command never deindent lines #38

Closed
Gyllsdorff opened this issue Mar 25, 2013 · 1 comment
Closed

"Indentation: Reindent lines" command never deindent lines #38

Gyllsdorff opened this issue Mar 25, 2013 · 1 comment
Labels

Comments

@Gyllsdorff
Copy link

I don't know if I am doing something wrong but I can't get the indentation to work correctly.

When I use the reindent command it never deindent any lines and when I tries to create a list of objects the autoindent always adds a new indentation level.

Does the indentation works for anyone else or am I doing something wrong?

class Demo
    constructor: ->
        alert("Foo")

    example: (data) ->
        alert("Bar")
        for row in array
            alert("Baz")

    @settings = [{test: 'a'},{
        test: 'b'
        }, {
            test: 'c'
            }, {
                test: 'd'
                }]

after Ctrl+Shift+P, "Reindent lines" it looks like this


class Demo
    constructor: ->
        alert("Foo")

        example: (data) ->
            alert("Bar")
            for row in array
                alert("Baz")

                @settings = [{test: 'a'},{
                    test: 'b'
                    }, {
                        test: 'c'
                        }, {
                            test: 'd'
                            }]

I am running a new Linux Mint 14 Nadia and my Sublime Text is version version 2.0.1, build 2217. I installed the package using the Package Control tool.

The installed coffeescript version is 1.6.1

@aponxi
Copy link
Collaborator

aponxi commented May 26, 2013

It doesn't work for me either... Well, coffee-script is one of those pretty syntax where we need to indent manually anyways... I mean how can the indent function know if the following line is in the outer scope or not?

I'm going to close this issue, but feel free to reopen it if you have any questions. Also I don't think this is an issue I can fix with this plugin :/

@aponxi aponxi closed this as completed May 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants