Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add instructions for VS Code support #3070

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/install.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,10 @@ If you are using Babel's env option emotion must also be first for each environm
}
```

## VS Code support

You can install the [styled-components](https://marketplace.visualstudio.com/items?itemName=styled-components.vscode-styled-components) VS Code extension to get full IDE support for embedded CSS (e.g., within `` styled.div` ... ` `` or `` css` ... ` ``). Emotion's syntax is compatible with this extension even though it was created for the styled-components library. This will both enable syntax highlighting and autocomplete for embedded CSS.

## Vanilla

If you're not using React, you can use vanilla Emotion from the `@emotion/css` package. Most of the documentation here focuses on the React-specific version of Emotion, but most of the concepts in the React-specific version also apply to vanilla Emotion.
Expand Down