styled-components / webstorm-styled-components

styled-components highlighting support in IntelliJ editors

Home Page:https://plugins.jetbrains.com/plugin/9997-styled-components

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Toggling comments for row

nabati opened this issue · comments

Version 1.0.7

Problem description:

Toggling a line comment on a styled component property adds //-style comments, which doesn't compile properly. Instead, the plugin should add /* */ style comments.

Currently the following

const OnText = styled(Text)`
  flex-grow: 1;
`;

becomes

const OnText = styled(Text)`
  //flex-grow: 1;
`;

and gives error

image

Instead, it should become

const OnText = styled(Text)`
  /* flex-grow: 1; */
`;