Better DX for using twind, having IDE autocompletions OOTB with VSCode
See original GitHub issueAfter generating a new project and answering that I would like to use twind
Do you want to use 'twind' (https://twind.dev/) for styling? [y/N] y
IDE auto completions doesn’t work OOTB.
Considering you’re a VSCode user, there are two other things that need to be added:
- Installation of the extension
- having a
tailwind.config.js
ortailwind.config.cjs
(see installation)
To solve this, we can consider the following:
- use the
extensions.json
file in order to recommend the tailwind extension. (another point is that we can use this file in order to recommend thedeno
extension as well) - generate a
tailwind.config.js
file when choosing the--twind
option
If you’ll decide that these are good changes, I’d be happy to contribute
Issue Analytics
- State:
- Created a year ago
- Reactions:2
- Comments:6 (1 by maintainers)
Top Results From Across the Web
IntelliSense in Visual Studio Code
Visual Studio Code IntelliSense is provided for JavaScript, TypeScript, JSON, HTML, CSS, SCSS, and Less out of the box. VS Code supports word...
Read more >Visual Studio Code and Unity
Unity Development with VS Code. Visual Studio Code can be a great companion to Unity for editing C# files. All of the C#...
Read more >Visual Studio Code Tips and Tricks
Try out VS Code's code editing features, like multi-cursor editing, IntelliSense, Snippets, Emmet, and many more. Help > Editor Playground. Interactive editor ...
Read more >TypeScript Programming with Visual Studio Code
ts . This will compile and create a new helloworld.js JavaScript file. compiled hello world. If you have Node.js installed, you ...
Read more >Java in Visual Studio Code
For a quick walkthrough of editing, running, and debugging a Java program with Visual Studio Code, use the Java Getting Started Tutorial button...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
I worked around this by adding
twind.config.ts
in my project root:and then importing that in
main.ts
and inutils/twind.ts
:The plugin author says it looks in root,
public
,src
orconfig
– seems like maybe a FR for them would be to allow us to specify custom directories to look for this file (util
)Yes @RileyMShea, I did the same. The idea of this issue is to create this file on project generation, including the relevant annotations to make the autocompletions works OOTB.