theron-wang / VS2022-Editor-Support-for-Tailwind-CSS

Unofficial VS2022 Tailwind CSS extension for IntelliSense, linting, sorting, and more to enhance the development experience in Visual Studio 2022.
https://marketplace.visualstudio.com/items?itemName=TheronWang.TailwindCSSIntellisense
MIT License
93 stars 5 forks source link

Question: data storage #81

Open pm64 opened 1 day ago

pm64 commented 1 day ago

Just a quick question about this excellent extension. When I right-click a Tailwind CSS config file in Solution Explorer, and click "Set as Tailwind CSS configuration file", where does the extension store that information?

Also, for this extension to start, must the config file be in the root directory of a project, or can it be buried in a subdirectory?

Thanks for this project!

theron-wang commented 1 day ago

When I right-click a Tailwind CSS config file in Solution Explorer, and click "Set as Tailwind CSS configuration file", where does the extension store that information?

There is a JSON file (tailwind.extension.json) in the project that contains your configuration file. It should always be located in the base directory of the project.

Also, for this extension to start, must the config file be in the root directory of a project, or can it be buried in a subdirectory?

The config file can be located in any subdirectory, as long as it's named tailwind.config.js. If, for some reason, the extension can't find it, then you can explicitly set its location in the tailwind.extension.json file (or by right-clicking on your config file).

Thanks for this project!

No problem, I'm glad that you like it :)