{"id":2481,"date":"2024-11-10T13:04:12","date_gmt":"2024-11-10T05:04:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/2481\/"},"modified":"2024-11-10T13:04:12","modified_gmt":"2024-11-10T05:04:12","slug":"%e5%a6%82%e4%bd%95%e5%9c%a8-vscode-%e4%b8%ad%e4%b8%ba-react-%e7%bb%84%e4%bb%b6%e5%90%af%e7%94%a8-tailwind-css-%e6%8f%90%e7%a4%ba%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/2481\/","title":{"rendered":"\u5982\u4f55\u5728 VSCode \u4e2d\u4e3a React \u7ec4\u4ef6\u542f\u7528 Tailwind CSS \u63d0\u793a\uff1f"},"content":{"rendered":"<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/001\/246\/273\/173077473425748.jpg\" class=\"aligncenter\" title=\"\u5982\u4f55\u5728 VSCode \u4e2d\u4e3a React \u7ec4\u4ef6\u542f\u7528 Tailwind CSS \u63d0\u793a\uff1f\u63d2\u56fe\" alt=\"\u5982\u4f55\u5728 VSCode \u4e2d\u4e3a React \u7ec4\u4ef6\u542f\u7528 Tailwind CSS \u63d0\u793a\uff1f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5728  \u4e2d\u4e3a react \u7ec4\u4ef6\u542f\u7528 tlwind  \u63d0\u793a<\/strong><\/p>\n<p>\u5982\u679c\u4f60\u5728\u4f7f\u7528 vscode \u7f16\u5199 react \u7ec4\u4ef6\u65f6\uff0c\u53d1\u73b0 tailwind css \u63d0\u793a\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<ol>\n<li><strong>\u5b89\u88c5 tailwind css intellisense \u63d2\u4ef6<\/strong><\/li>\n<\/ol>\n<p>\u8fd9\u662f\u5b9e\u73b0\u4ee3\u7801\u63d0\u793a\u7684\u5173\u952e\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b64\u63d2\u4ef6\u3002<\/p>\n<ol>\n<li><strong>\u5c06 tailwind css \u5305\u542b\u5230\u9879\u76ee\u4e2d<\/strong><\/li>\n<\/ol>\n<p>\u6839\u636e\u4f60\u7684\u9879\u76ee\u8bbe\u7f6e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 npm \u6216 yarn \u5b89\u88c5 tailwind \u4f9d\u8d56\u3002<\/p>\n<ol>\n<li><strong>\u9488\u5bf9 react \u7ec4\u4ef6\u6dfb\u52a0\u63d2\u4ef6\u8bbe\u7f6e<\/strong><\/li>\n<\/ol>\n<p>\u5728 vscode \u8bbe\u7f6e\u4e2d\uff0c\u5bfc\u822a\u5230\u201c\u7528\u6237\u8bbe\u7f6e\u201d\u6216\u201c\u5de5\u4f5c\u533a\u8bbe\u7f6e\u201d\uff08\u5177\u4f53\u53d6\u51b3\u4e8e\u9879\u76ee\u8303\u56f4\uff09\u3002\u6dfb\u52a0\u4ee5\u4e0b json \u7247\u6bb5\uff1a<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<pre>{\n  \"tailwindCSS.experimental.showSuggestionsFor\": [\n    \"strings\"\n  ],\n  \"tailwindCSS.includeLanguages\": [\n    \"javascript\",\n    \"typescript\",\n    \"jsx-typescript\"\n  ]\n}<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<ol>\n<li><strong>\u91cd\u542f vscode<\/strong><\/li>\n<\/ol>\n<p>\u91cd\u542f vscode \u4ee5\u5e94\u7528\u66f4\u6539\u3002<\/p>\n<ol>\n<li><strong>\u68c0\u67e5\u63d0\u793a<\/strong><\/li>\n<\/ol>\n<p>\u73b0\u5728\uff0c\u5728 react \u7ec4\u4ef6\u4e2d\u7f16\u5199 tailwind css \u65f6\uff0c\u4f60\u5e94\u8be5\u80fd\u591f\u770b\u5230 css \u63d0\u793a\u3002<\/p>\n<p><strong>\u53c2\u8003\u4fe1\u606f\uff1a<\/strong><\/p>\n<p>\u8bf7\u6ce8\u610f\uff0c\u6b64\u5904\u7684\u53c2\u8003\u4fe1\u606f\u5df2\u4ece\u95ee\u7b54\u4e2d\u5220\u9664\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u5728 VSCode \u4e2d\u4e3a React \u7ec4\u4ef6\u542f\u7528 Tlwind CSS \u63d0\u793a\uff1f\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u5728 \u4e2d\u4e3a react \u7ec4\u4ef6\u542f\u7528 tlwind \u63d0\u793a \u5982\u679c\u4f60\u5728\u4f7f\u7528 vscode \u7f16\u5199 react \u7ec4\u4ef6\u65f6\uff0c\u53d1\u73b0 tailwind css \u63d0\u793a\u65e0\u6cd5\u6b63\u5e38\u663e\u793a\uff0c\u8fd9\u91cc\u6709\u4e00\u4e2a\u89e3\u51b3\u65b9\u6cd5\uff1a \u5b89\u88c5 tailwind css intellisense \u63d2\u4ef6 \u8fd9\u662f\u5b9e\u73b0\u4ee3\u7801\u63d0\u793a\u7684\u5173\u952e\uff0c\u786e\u4fdd\u4f60\u5df2\u7ecf\u5b89\u88c5\u4e86\u6b64\u63d2\u4ef6\u3002 \u5c06 tailwind css \u5305\u542b\u5230\u9879\u76ee\u4e2d \u6839\u636e\u4f60\u7684\u9879\u76ee\u8bbe\u7f6e\uff0c\u4f60\u53ef\u4ee5\u4f7f\u7528 npm \u6216 yarn \u5b89\u88c5 tailwind \u4f9d\u8d56\u3002 \u9488\u5bf9 react \u7ec4\u4ef6\u6dfb\u52a0\u63d2\u4ef6\u8bbe\u7f6e \u5728 vscode \u8bbe\u7f6e\u4e2d\uff0c\u5bfc\u822a\u5230\u201c\u7528\u6237\u8bbe\u7f6e\u201d\u6216\u201c\u5de5\u4f5c\u533a\u8bbe\u7f6e\u201d\uff08\u5177\u4f53\u53d6\u51b3\u4e8e\u9879\u76ee\u8303\u56f4\uff09\u3002\u6dfb\u52a0\u4ee5\u4e0b json \u7247\u6bb5\uff1a \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b { &#8220;tailwindCSS.experimental.showSuggestionsFor&#8221;: [ &#8220;strings&#8221; ], &#8220;tailwindCSS.includeLanguages&#8221;: [ &#8220;javascript&#8221;, &#8220;typescript&#8221;, &#8220;jsx-typescript&#8221; ] } \u767b\u5f55\u540e\u590d\u5236 \u91cd\u542f vscode [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-2481","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2481","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=2481"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/2481\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=2481"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=2481"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=2481"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}