Skip to content

Indent size is ignored and only works on first line #105

Open
@crtl

Description

@crtl

Currently the plugin seems to be using 2 spaces for indents only and ignores the configured indent size in PHPStorm.

  • IDE name and version:
PhpStorm 2022.1.3
Build #PS-221.5921.28, built on June 22, 2022
Runtime version: 11.0.15+10-b2043.56 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 10 10.0
GC: G1 Young Generation, G1 Old Generation
Memory: 2040M
Cores: 8
Registry:
    run.processes.with.pty=TRUE

Non-Bundled Plugins:
    de.espend.idea.localization (0.0.6)
    com.intellij.ideolog (203.0.30.0)
    com.bluewaitor.tsReact (1.4.0)
    intellij.prettierJS (221.5921.12)
    com.deadlock.scsyntax (221.5921.12)
    ru.adelf.idea.dotenv (2022.1)

  • Styled-components plugin version:
    5.3.5

Problem description:

const Comp = styled.div`
    press enter at above line starts indenting with 4 spaces (which is configured in PHPStorm).
  but pressing enter again continues with 2 spaces.
  and so forth
`;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions