Home

Awesome

<p align="center"> <img src="https://github.com/Arthie/vscode-xwind/raw/master/resources/header.png" alt="xwind"> </p>

vscode-xwind

Adds editor support for xwind tagged template syntax: tw`...` or xw`...`

This extension extends VS Code's typescript language service with typescript-xwind-plugin. Make sure you're using VS Code's typescript version for the extension to work! If you want to have editor support with your projects typescript version or use a different editor check out typescript-xwind-plugin's documentation for install instructions.

It also works with other solutions that use the tw tagged template but issues specific to those might not be solved.

Features

Installation

Go to VS Code extensions marketplace

Demo

Autocomplete

autocomplete

CSS hover preview

hover

Errors

error

Reacting to tailwind.config.js changes

react

Configuration

"xwind.useCompletionItemProviderTriggerProxy": {
  "type": "boolean",
  "default": true,
  "description": "use Trigger character completion proxy."
},
"xwind.ignoreErrors": {
  "type": [
    "string",
    "null"
  ],
  "default": null,
  "description": "If this regex pattern string matches the error will be ignored"
}