DEV Community

VSCode Tailwind Extension And Rails (ERB)

Scott Watermasysk on August 27, 2019

If you are having trouble getting an extension like VSCode Tailwind to work in VSCode, a smart place to start debugging is the language mode. For ...
Collapse
 
danieldocki profile image
Daniel Docki

there is some way to work in the rails helpers, example:

<%= button_tag "Hello", class: "<<<HERE>>>" %>
Collapse
 
pavelloz profile image
Paweł Kowalski

You could also change erb files to be treated as html. ;)

Collapse
 
scottw profile image
Scott Watermasysk

But then you lose ERB specific highlighting/features.