{"id":21489,"date":"2024-11-19T08:47:42","date_gmt":"2024-11-19T00:47:42","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21489\/"},"modified":"2024-11-19T08:47:42","modified_gmt":"2024-11-19T00:47:42","slug":"webstorm%e6%80%8e%e4%b9%88%e5%88%9b%e5%bb%ba%e7%8e%af%e5%a2%83","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21489\/","title":{"rendered":"webstorm\u600e\u4e48\u521b\u5efa\u73af\u5883"},"content":{"rendered":"<blockquote><p>\n  \u901a\u8fc7 webstorm \u521b\u5efa\u73af\u5883\u53ef\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\u5e76\u7ba1\u7406\u914d\u7f6e\uff1a\u521b\u5efa\u65b0\u73af\u5883\uff1a\u5728 &#8220;tools&#8221; &gt; &#8220;environments&#8221; \u4e2d\u70b9\u51fb &#8220;+&#8221; \u56fe\u6807\uff0c\u547d\u540d\u5e76\u521b\u5efa\u3002\u9009\u62e9\u73af\u5883\uff1a\u5728 &#8220;run&#8221; \u83dc\u5355\u4e2d\u5c06 &#8220;run\/debug configuration&#8221; \u8bbe\u7f6e\u4e3a &#8220;current environment&#8221;\uff0c\u518d\u9009\u62e9\u5df2\u521b\u5efa\u7684\u73af\u5883\u3002\u914d\u7f6e\u73af\u5883\uff1a\u8bbe\u7f6e node.js \u89e3\u91ca\u5668\u3001\u4f9d\u8d56\u5173\u7cfb\u548c\u5de5\u5177\u7b49\u3002\u4f7f\u7528\u73af\u5883\uff1a\u9009\u62e9\u6b63\u786e\u73af\u5883\uff0c\u70b9\u51fb &#8220;run&#8221; &gt; &#8220;run&#8221;\u3002\u597d\u5904\uff1a\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\u3001\u7ba1\u7406\u914d\u7f6e\u3001\u5feb\u901f\u5207\u6362\u73af\u5883\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/30\/2024053022273860662.jpg\" class=\"aligncenter\" title=\"webstorm\u600e\u4e48\u521b\u5efa\u73af\u5883\u63d2\u56fe\" alt=\"webstorm\u600e\u4e48\u521b\u5efa\u73af\u5883\u63d2\u56fe\" \/><\/p>\n<h2>\u5982\u4f55\u4f7f\u7528 WebStorm \u521b\u5efa\u73af\u5883<\/h2>\n<p>\u5728 WebStorm \u4e2d\u521b\u5efa\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u60a8\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u5e76\u7ba1\u7406\u5176\u914d\u7f6e\u3002<\/p>\n<p><strong>\u521b\u5efa\u65b0\u73af\u5883\uff1a<\/strong><\/p>\n<ol>\n<li>\u6253\u5f00 WebStorm\u3002<\/li>\n<li>\u5355\u51fb\u83dc\u5355\u680f\u4e2d\u7684 &#8220;Tools&#8221; &gt; &#8220;Environments&#8221;\u3002<\/li>\n<li>\u5728 &#8220;Environments&#8221; \u7a97\u53e3\u4e2d\uff0c\u5355\u51fb &#8220;Create New Environment&#8221; \u56fe\u6807\uff08\u52a0\u53f7\uff09\u3002<\/li>\n<li>\u4e3a\u60a8\u7684\u73af\u5883\u547d\u540d\uff0c\u7136\u540e\u5355\u51fb &#8220;Create&#8221;\u3002<\/li>\n<\/ol>\n<p><strong>\u9009\u62e9\u73af\u5883\uff1a<\/strong><\/p>\n<p>\u521b\u5efa\u73af\u5883\u540e\uff0c\u60a8\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u7528\u4e8e\u5f53\u524d\u9879\u76ee\u7684\u73af\u5883\u3002<\/p>\n<ol>\n<li>\u5355\u51fb &#8220;Run&#8221; \u83dc\u5355\u3002<\/li>\n<li>\u5c06 &#8220;Run\/Debug Configuration&#8221; \u8bbe\u7f6e\u4e3a &#8220;Current Environment&#8221;\u3002<\/li>\n<li>\u4ece\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u60a8\u521b\u5efa\u7684\u73af\u5883\u3002<\/li>\n<\/ol>\n<p><strong>\u914d\u7f6e\u73af\u5883\uff1a<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u914d\u7f6e\u73af\u5883\u4ee5\u6ee1\u8db3\u9879\u76ee\u7684\u7279\u5b9a\u9700\u6c42\u3002<\/p>\n<ul>\n<li> <strong>Node.js \u89e3\u91ca\u5668\uff1a<\/strong>\u6307\u5b9a\u9879\u76ee\u4f7f\u7528\u7684 Node.js \u7248\u672c\u3002<\/li>\n<li> <strong>\u4f9d\u8d56\u5173\u7cfb\uff1a<\/strong>\u7ba1\u7406\u9879\u76ee\u6240\u9700\u7684 npm \u5305\u3002<\/li>\n<li> <strong>\u5de5\u5177\uff1a<\/strong>\u914d\u7f6e ESLint\u3001Prettier \u7b49\u5de5\u5177\u3002<\/li>\n<\/ul>\n<p><strong>\u4f7f\u7528\u73af\u5883\uff1a<\/strong><\/p>\n<p>\u521b\u5efa\u5e76\u914d\u7f6e\u73af\u5883\u540e\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u5b83\u6765\u8fd0\u884c\u9879\u76ee\u3002<\/p>\n<ol>\n<li>\u786e\u4fdd\u5df2\u9009\u62e9\u6b63\u786e\u7684\u73af\u5883\u3002<\/li>\n<li>\u5355\u51fb &#8220;Run&#8221; &gt; &#8220;Run&#8221;\u3002<\/li>\n<\/ol>\n<p><strong>\u597d\u5904\uff1a<\/strong><\/p>\n<p>\u4f7f\u7528\u73af\u5883\u5177\u6709\u4ee5\u4e0b\u597d\u5904\uff1a<\/p>\n<ul>\n<li> <strong>\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\uff1a<\/strong>\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\uff0c\u9632\u6b62\u51b2\u7a81\u3002<\/li>\n<li> <strong>\u7ba1\u7406\u914d\u7f6e\uff1a<\/strong>\u4e3a\u6bcf\u4e2a\u9879\u76ee\u7ba1\u7406\u7279\u5b9a\u914d\u7f6e\uff0c\u63d0\u9ad8\u53ef\u7ef4\u62a4\u6027\u3002<\/li>\n<li> <strong>\u5feb\u901f\u5207\u6362\uff1a<\/strong>\u8f7b\u677e\u5730\u5728\u4e0d\u540c\u73af\u5883\u4e4b\u95f4\u5207\u6362\uff0c\u7b80\u5316\u9879\u76ee\u5f00\u53d1\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u521b\u5efa\u73af\u5883\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>\u901a\u8fc7 webstorm \u521b\u5efa\u73af\u5883\u53ef\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\u5e76\u7ba1\u7406\u914d\u7f6e\uff1a\u521b\u5efa\u65b0\u73af\u5883\uff1a\u5728 &#8220;tools&#8221; &gt; &#8220;environments&#8221; \u4e2d\u70b9\u51fb &#8220;+&#8221; \u56fe\u6807\uff0c\u547d\u540d\u5e76\u521b\u5efa\u3002\u9009\u62e9\u73af\u5883\uff1a\u5728 &#8220;run&#8221; \u83dc\u5355\u4e2d\u5c06 &#8220;run\/debug configuration&#8221; \u8bbe\u7f6e\u4e3a &#8220;current environment&#8221;\uff0c\u518d\u9009\u62e9\u5df2\u521b\u5efa\u7684\u73af\u5883\u3002\u914d\u7f6e\u73af\u5883\uff1a\u8bbe\u7f6e node.js \u89e3\u91ca\u5668\u3001\u4f9d\u8d56\u5173\u7cfb\u548c\u5de5\u5177\u7b49\u3002\u4f7f\u7528\u73af\u5883\uff1a\u9009\u62e9\u6b63\u786e\u73af\u5883\uff0c\u70b9\u51fb &#8220;run&#8221; &gt; &#8220;run&#8221;\u3002\u597d\u5904\uff1a\u9694\u79bb\u4f9d\u8d56\u5173\u7cfb\u3001\u7ba1\u7406\u914d\u7f6e\u3001\u5feb\u901f\u5207\u6362\u73af\u5883\u3002 \u5982\u4f55\u4f7f\u7528 WebStorm \u521b\u5efa\u73af\u5883 \u5728 WebStorm \u4e2d\u521b\u5efa\u73af\u5883\u53ef\u4ee5\u5e2e\u52a9\u60a8\u9694\u79bb\u4e0d\u540c\u9879\u76ee\u7684\u4f9d\u8d56\u5173\u7cfb\u5e76\u7ba1\u7406\u5176\u914d\u7f6e\u3002 \u521b\u5efa\u65b0\u73af\u5883\uff1a \u6253\u5f00 WebStorm\u3002 \u5355\u51fb\u83dc\u5355\u680f\u4e2d\u7684 &#8220;Tools&#8221; &gt; &#8220;Environments&#8221;\u3002 \u5728 &#8220;Environments&#8221; \u7a97\u53e3\u4e2d\uff0c\u5355\u51fb &#8220;Create New Environment&#8221; \u56fe\u6807\uff08\u52a0\u53f7\uff09\u3002 \u4e3a\u60a8\u7684\u73af\u5883\u547d\u540d\uff0c\u7136\u540e\u5355\u51fb &#8220;Create&#8221;\u3002 \u9009\u62e9\u73af\u5883\uff1a \u521b\u5efa\u73af\u5883\u540e\uff0c\u60a8\u9700\u8981\u9009\u62e9\u4e00\u4e2a\u7528\u4e8e\u5f53\u524d\u9879\u76ee\u7684\u73af\u5883\u3002 \u5355\u51fb &#8220;Run&#8221; \u83dc\u5355\u3002 \u5c06 &#8220;Run\/Debug Configuration&#8221; \u8bbe\u7f6e\u4e3a &#8220;Current Environment&#8221;\u3002 \u4ece\u4e0b\u62c9\u83dc\u5355\u4e2d\u9009\u62e9\u60a8\u521b\u5efa\u7684\u73af\u5883\u3002 [&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-21489","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21489","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=21489"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21489\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21489"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21489"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21489"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}