<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Martin Flischman</title>
    <description>The latest articles on DEV Community by Martin Flischman (@martinships).</description>
    <link>https://dev.to/martinships</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F19873%2Fbf2d2c3e-8401-43c0-954c-12fdddedd48d.png</url>
      <title>DEV Community: Martin Flischman</title>
      <link>https://dev.to/martinships</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/martinships"/>
    <language>en</language>
    <item>
      <title>Automate DaisyUI Setup in VS Code with One Command</title>
      <dc:creator>Martin Flischman</dc:creator>
      <pubDate>Fri, 23 May 2025 19:43:26 +0000</pubDate>
      <link>https://dev.to/martinships/automate-daisyui-setup-in-vs-code-with-one-command-3295</link>
      <guid>https://dev.to/martinships/automate-daisyui-setup-in-vs-code-with-one-command-3295</guid>
      <description>&lt;p&gt;If you’re a beginner or indie web developer using Tailwind CSS and DaisyUI, setting up helpful features like autocomplete, IntelliSense, and docs access in VS Code can get repetitive. Here's a one-command setup to automate everything — clean, fast, and beginner-friendly.&lt;/p&gt;

&lt;h2&gt;
  
  
  🌍 Who This Is For
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;You use &lt;strong&gt;Tailwind CSS&lt;/strong&gt; and &lt;strong&gt;DaisyUI&lt;/strong&gt; in your projects&lt;/li&gt;
&lt;li&gt;You use &lt;strong&gt;GitHub Copilot for fast autocomplete&lt;/strong&gt; and want it to work seamlessly with DaisyUI classes&lt;/li&gt;
&lt;li&gt;You value &lt;strong&gt;momentum over perfection&lt;/strong&gt; and want to move fast&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  ❓ What This Does
&lt;/h2&gt;

&lt;p&gt;It creates a &lt;code&gt;.vscode/settings.json&lt;/code&gt; file inside your project and adds a setting that permanently enables DaisyUI's color autocomplete suggestions. It also adds a simple daisyui.md note file as a reminder of what it does.&lt;/p&gt;

&lt;p&gt;✅ The One-Time Setup (Takes 2 Minutes)&lt;/p&gt;

&lt;p&gt;To automate this for any future project, we’ll create a reusable terminal alias.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Open your terminal and type:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;code ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;&lt;em&gt;(or &lt;code&gt;~/.bashrc&lt;/code&gt; if you use Bash)&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;This opens your shell config file in VS Code.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;2. Add this alias at the bottom:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;alias setup-daisy='echo "{
  \"tailwindCSS.includeLanguages\": {\n    \"plaintext\": \"html\"\n  },\n  \"tailwindCSS.experimental.classRegex\": [\n    \"tw`([^`]*)\"\n  ],\n  \"tailwindCSS.emmetCompletions\": true\n}" &amp;gt; .vscode/settings.json &amp;amp;&amp;amp; echo "This project is now setup for DaisyUI autocomplete in VS Code." &amp;gt; daisyui.md'
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Then save and close the file.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;3. Back in terminal, run:&lt;/strong&gt;&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;source ~/.zshrc
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;ul&gt;
&lt;li&gt;This reloads your terminal so it knows about the new &lt;code&gt;setup-daisy&lt;/code&gt; command.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  🚀 How to Use It (Every New Project)
&lt;/h2&gt;

&lt;p&gt;Next time you start a new project:&lt;/p&gt;

&lt;p&gt;Create your project folder and &lt;code&gt;cd&lt;/code&gt; into it&lt;/p&gt;

&lt;p&gt;Run this:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;setup-daisy
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That’s it. Your VS Code is now ready to give you DaisyUI suggestions in that project.&lt;/p&gt;

&lt;h2&gt;
  
  
  🔄 Version Warning
&lt;/h2&gt;

&lt;p&gt;This setup works with the current version of DaisyUI. If DaisyUI changes its class structure or VS Code settings in future updates, you may need to update the script. Always check the &lt;strong&gt;official docs&lt;/strong&gt; for latest recommendations.&lt;/p&gt;

&lt;h2&gt;
  
  
  📄 DaisyUI Reference
&lt;/h2&gt;

&lt;p&gt;&lt;a href="https://daisyui.com/docs/editor/vscode/#project-level-permanent-setup" rel="noopener noreferrer"&gt;Link to source&lt;/a&gt;&lt;/p&gt;

&lt;h2&gt;
  
  
  🌟 Final Tip
&lt;/h2&gt;

&lt;p&gt;If you're using GitHub Copilot to move fast, automating small setup steps like this helps it work better with your stack — and keeps you in flow.&lt;/p&gt;

&lt;p&gt;Let me know if this helped you, or if you have a faster way to do it!&lt;/p&gt;

</description>
      <category>tailwindcss</category>
      <category>daisyui</category>
      <category>vscode</category>
      <category>githubcopilot</category>
    </item>
  </channel>
</rss>
