styled-components / webstorm-styled-components

styled-components highlighting support in IntelliJ editors
https://plugins.jetbrains.com/plugin/9997-styled-components
MIT License
375 stars 19 forks source link

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

Open crtl opened 2 years ago

crtl commented 2 years ago

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

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:
```ts
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
`;