Skip to content

Autocomplete

UnoCSS มาพร้อมกับ IDE integrations ที่ช่วยให้เราสามารถใช้งาน autocomplete ได้ง่ายขึ้น โดยรองรับ VS Code, WebStorm และ other IDEs

VS Code Extension

ติดตั้ง extension:

bash
ext install antfu.unocss

WebStorm Plugin

ติดตั้งผ่าน IDE Marketplace:

  1. เปิด Settings/Preferences
  2. ไปที่ Plugins
  3. ค้นหา "UnoCSS"
  4. กดติดตั้ง และ restart IDE

ตัวอย่างการใช้งาน

html
<div class="bg-blue-500 hover:bg-blue-600">
	<!-- autocomplete จะแสดงตัวเลือกสีและ variants ให้อัตโนมัติ -->
</div>

Released under the MIT License