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

multi-line snippets don't respect editor.tabLength #135

Open
@AsaAyers

Description

@AsaAyers

I work on some projects with a tabLength of 4 but when I install snippet packages like atom-jasmine it indents the snippets wrong.

In one of my own snippets I found a workaround by using \n\n to reset, but then it obviously leaves a blank line. It's also harder to read than if I used a multiline string.

  "invariant":
    prefix: "invariant"
    body: "if (process.env.NODE_ENV !== 'production') {\n\tinvariant(${1}, '${2}');\n\n} else {\n\tinvariant(${1});\n}"

Result:

if (process.env.NODE_ENV !== 'production') {
    invariant(, '');

} else {
    invariant();
}

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions