Skip to content
This repository has been archived by the owner on Apr 13, 2022. It is now read-only.

Weird align behaviour? #71

Open
RenanLazarotto opened this issue Feb 9, 2021 · 1 comment
Open

Weird align behaviour? #71

RenanLazarotto opened this issue Feb 9, 2021 · 1 comment

Comments

@RenanLazarotto
Copy link

I'm trying to format this snippet of code using Align command:
Captura de tela de 2021-02-09 10-11-24

It's giving me this as result:
2021-02-09 10 11 48

However, I was expecting something more like this:
2021-02-09 10 12 06

Is this possible or I am doing something wrong?

@sebastiencyr
Copy link

I'm getting a similarly weird behavior:

Original

$term = get_term( $term_id, Theme::TAX_EVENT_LANG );
$langs[] = $term->name;

Result:

       $term = get_term( $term_id, Theme::TAX_EVENT_LANG );
$langs[]     = $term->name;

Expected:

$term    = get_term( $term_id, Theme::TAX_EVENT_LANG );
$langs[] = $term->name;

This is with indent base set to dontchange and surroundSpace is unchanged:

"alignment.surroundSpace": {
    

        "colon": [
            0,
            1
        ],
        "assignment": [
            1,
            1
        ],
        "arrow": [
            1,
            1
        ],
        "comment": 2
    },

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

No branches or pull requests

2 participants