{"id":21366,"date":"2024-11-19T12:09:52","date_gmt":"2024-11-19T04:09:52","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21366\/"},"modified":"2024-11-19T12:09:52","modified_gmt":"2024-11-19T04:09:52","slug":"vscode%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8chtml%e6%96%87%e4%bb%b6","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21366\/","title":{"rendered":"vscode\u600e\u4e48\u8fd0\u884chtml\u6587\u4ef6"},"content":{"rendered":"<blockquote><p>\n  \u5728 visual studio code \u4e2d\u8fd0\u884c html \u6587\u4ef6\u9700\u8981\uff1a\u5b89\u88c5 live server \u63d2\u4ef6\u3002\u4fdd\u5b58 html \u6587\u4ef6\u5e76\u786e\u4fdd\u5176\u4ee3\u7801\u6b63\u786e\u3002\u70b9\u51fb &#8220;live server&#8221; \u90e8\u5206\u4e2d\u7684 &#8220;go live&#8221; \u6309\u94ae\u3002\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u8f93\u5165\u51fa\u73b0\u7684 url \u5e76\u56de\u8f66\uff0c\u5373\u53ef\u770b\u5230 html \u6587\u4ef6\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052712241994846.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u8fd0\u884chtml\u6587\u4ef6\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u8fd0\u884chtml\u6587\u4ef6\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u8fd0\u884c HTML \u6587\u4ef6<\/strong><\/p>\n<p><strong>\u7b80\u4ecb<\/strong><br \/>\u8fd0\u884c HTML \u6587\u4ef6\u53ef\u4ee5\u8ba9\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u770b\u5230\u7f51\u9875\u5185\u5bb9\u3002\u672c\u6559\u7a0b\u5c06\u5f15\u5bfc\u4f60\u5982\u4f55\u5728 Visual Studio Code (VSCode) \u4e2d\u8fd0\u884c HTML \u6587\u4ef6\u3002<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u5b89\u88c5 Live Server \u63d2\u4ef6<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 VSCode\uff0c\u8f6c\u5230\u6269\u5c55\u90e8\u5206 (Ctrl + Shift + X)\u3002<\/li>\n<li>\u641c\u7d22 &#8220;Live Server&#8221; \u63d2\u4ef6\u5e76\u5b89\u88c5\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 2\uff1a\u4fdd\u5b58 HTML \u6587\u4ef6<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5982\u679c\u4f60\u8fd8\u6ca1\u6709\u4e00\u4e2a HTML \u6587\u4ef6\uff0c\u521b\u5efa\u4e00\u4e2a\u5e76\u4f7f\u7528 .html \u6269\u5c55\u540d\u4fdd\u5b58\u3002<\/li>\n<li>\u786e\u4fdd HTML \u4ee3\u7801\u6b63\u786e\u4e14\u6ca1\u6709\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u8fd0\u884c Live Server<\/strong><\/p>\n<ul>\n<li>\u5728 VSCode \u7684\u6d3b\u52a8\u680f\u4e2d\u627e\u5230 &#8220;Live Server&#8221; \u90e8\u5206\u3002<\/li>\n<li>\u5355\u51fb &#8220;Go Live&#8221; \u6309\u94ae\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u6253\u5f00\u6d4f\u89c8\u5668<\/strong><\/p>\n<ul>\n<li>\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u4e2d\u5e94\u8be5\u4f1a\u51fa\u73b0\u4e00\u4e2a URL \u5730\u5740\u3002\u8f93\u5165\u8be5\u5730\u5740\u5e76\u56de\u8f66\u3002<\/li>\n<li>\u4f60\u7684 HTML \u6587\u4ef6\u5c06\u5728\u6d4f\u89c8\u5668\u4e2d\u6253\u5f00\u3002<\/li>\n<\/ul>\n<p><strong>\u53ef\u9009\u9879\uff1a\u81ea\u52a8\u5237\u65b0<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u5e0c\u671b\u6bcf\u6b21\u4fdd\u5b58\u6587\u4ef6\u65f6\u81ea\u52a8\u5237\u65b0\u6d4f\u89c8\u5668\uff0c\u8bf7\u8f6c\u5230 &#8220;Live Server&#8221; \u8bbe\u7f6e (\u6587\u4ef6 &gt; \u9996\u9009\u9879 &gt; \u8bbe\u7f6e &gt; \u641c\u7d22 &#8220;Live Server&#8221;)\u3002<\/li>\n<li>\u9009\u4e2d &#8220;\u81ea\u52a8\u5237\u65b0&#8221; \u590d\u9009\u6846\u3002<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a<\/strong><\/p>\n<ul>\n<li>\u5982\u679c\u51fa\u73b0 &#8220;\u65e0\u6cd5\u8fde\u63a5\u5230\u670d\u52a1\u5668&#8221; \u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u4f60\u7684\u9632\u706b\u5899\u8bbe\u7f6e\u6216\u5173\u95ed\u9632\u75c5\u6bd2\u8f6f\u4ef6\u3002<\/li>\n<li>\u5982\u679c\u7f51\u9875\u4e0d\u663e\u793a\uff0c\u8bf7\u68c0\u67e5\u4f60\u7684 HTML \u4ee3\u7801\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u9519\u8bef\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u5728 &#8220;Live Server&#8221; \u8bbe\u7f6e\u4e2d\u81ea\u5b9a\u4e49\u7aef\u53e3\u53f7\u548c\u4e3b\u673a\u5730\u5740\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884chtml\u6587\u4ef6\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 visual studio code \u4e2d\u8fd0\u884c html \u6587\u4ef6\u9700\u8981\uff1a\u5b89\u88c5 live server \u63d2\u4ef6\u3002\u4fdd\u5b58 html \u6587\u4ef6\u5e76\u786e\u4fdd\u5176\u4ee3\u7801\u6b63\u786e\u3002\u70b9\u51fb &#8220;live server&#8221; \u90e8\u5206\u4e2d\u7684 &#8220;go live&#8221; \u6309\u94ae\u3002\u5728\u6d4f\u89c8\u5668\u7684\u5730\u5740\u680f\u8f93\u5165\u51fa\u73b0\u7684 url \u5e76\u56de\u8f66\uff0c\u5373\u53ef\u770b\u5230 html \u6587\u4ef6\u3002 \u5982\u4f55\u8fd0\u884c HTML \u6587\u4ef6 \u7b80\u4ecb\u8fd0\u884c HTML \u6587\u4ef6\u53ef\u4ee5\u8ba9\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u770b\u5230\u7f51\u9875\u5185\u5bb9\u3002\u672c\u6559\u7a0b\u5c06\u5f15\u5bfc\u4f60\u5982\u4f55\u5728 Visual Studio Code (VSCode) \u4e2d\u8fd0\u884c HTML \u6587\u4ef6\u3002 \u6b65\u9aa4 1\uff1a\u5b89\u88c5 Live Server \u63d2\u4ef6 \u6253\u5f00 VSCode\uff0c\u8f6c\u5230\u6269\u5c55\u90e8\u5206 (Ctrl + Shift + X)\u3002 \u641c\u7d22 &#8220;Live Server&#8221; \u63d2\u4ef6\u5e76\u5b89\u88c5\u3002 \u6b65\u9aa4 2\uff1a\u4fdd\u5b58 HTML \u6587\u4ef6 [&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-21366","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21366","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=21366"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21366\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21366"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21366"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21366"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}