{"id":21369,"date":"2024-11-19T12:22:18","date_gmt":"2024-11-19T04:22:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21369\/"},"modified":"2024-11-19T12:22:18","modified_gmt":"2024-11-19T04:22:18","slug":"vscode%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8chtml%e7%a8%8b%e5%ba%8f","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21369\/","title":{"rendered":"vscode\u600e\u4e48\u8fd0\u884chtml\u7a0b\u5e8f"},"content":{"rendered":"<blockquote><p>\n  vscode \u4e2d\u8fd0\u884c html \u7a0b\u5e8f\u9700\u8981\uff1a\u5b89\u88c5 live server \u6269\u5c55\uff1b\u521b\u5efa\u5e26\u6709 .html \u6269\u5c55\u540d\u7684 html \u6587\u4ef6\uff1b\u70b9\u51fb\u72b6\u6001\u680f\u4e2d\u7684 &#8220;go live&#8221; \u6309\u94ae\u8fd0\u884c live server\uff1blive server \u4f1a\u5728\u672c\u5730\u4e3b\u673a\u4e0a\u542f\u52a8\u670d\u52a1\u5668\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u52a0\u8f7d html \u7a0b\u5e8f\uff0c\u5b9e\u65f6\u663e\u793a\u66f4\u6539\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052712331658175.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u8fd0\u884chtml\u7a0b\u5e8f\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u8fd0\u884chtml\u7a0b\u5e8f\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c HTML \u7a0b\u5e8f<\/strong><\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u8bbe\u7f6e Live Server \u6269\u5c55<\/strong><\/p>\n<ul>\n<li>\u5728 VSCode \u7684\u6269\u5c55\u5e02\u573a\u4e2d\u641c\u7d22\u5e76\u5b89\u88c5 Live Server \u6269\u5c55\u3002<\/li>\n<li>\u6b64\u6269\u5c55\u53ef\u5728\u672c\u5730\u4e3b\u673a\u4e0a\u542f\u52a8\u4e00\u4e2a\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u5141\u8bb8\u60a8\u5b9e\u65f6\u67e5\u770b HTML \u66f4\u6539\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 2\uff1a\u521b\u5efa HTML \u6587\u4ef6<\/strong><\/p>\n<ul>\n<li>\u5728 VSCode \u4e2d\u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u5c06\u5176\u6269\u5c55\u540d\u4e3a .html\uff0c\u4f8b\u5982 index.html\u3002<\/li>\n<li>\u5728\u6587\u4ef6\u4e2d\u8f93\u5165 HTML \u4ee3\u7801\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 3\uff1a\u8fd0\u884c Live Server<\/strong><\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<ul>\n<li>\u5728 VSCode \u4e2d\u6253\u5f00 index.html \u6587\u4ef6\u3002<\/li>\n<li>\u5355\u51fb\u72b6\u6001\u680f\u4e2d\u7684 &#8220;Go Live&#8221; \u6309\u94ae\uff08\u5730\u7403\u56fe\u6807\uff09\u3002<\/li>\n<\/ul>\n<p><strong>\u6b65\u9aa4 4\uff1a\u9884\u89c8\u7a0b\u5e8f<\/strong><\/p>\n<ul>\n<li>Live Server \u5c06\u5728\u672c\u5730\u4e3b\u673a\u4e0a\u542f\u52a8\u4e00\u4e2a\u670d\u52a1\u5668\uff0c\u6253\u5f00\u4e00\u4e2a\u6d4f\u89c8\u5668\u7a97\u53e3\u5e76\u52a0\u8f7d HTML \u7a0b\u5e8f\u3002<\/li>\n<li>\u8be5\u6d4f\u89c8\u5668\u7a97\u53e3\u5c06\u5b9e\u65f6\u663e\u793a\u60a8\u5bf9 HTML \u6587\u4ef6\u6240\u505a\u7684\u4efb\u4f55\u66f4\u6539\u3002<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u60a8\u5df2\u6b63\u786e\u5b89\u88c5 Node.js\uff0c\u56e0\u4e3a Live Server \u4f9d\u8d56\u4e8e\u5b83\u624d\u80fd\u8fd0\u884c\u3002<\/li>\n<li>\u5982\u679c &#8220;Go Live&#8221; \u6309\u94ae\u5448\u7070\u8272\uff0c\u8bf7\u68c0\u67e5\u60a8\u7684 HTML \u6587\u4ef6\u662f\u5426\u5305\u542b\u8bed\u6cd5\u9519\u8bef\u6216\u5176\u4ed6\u95ee\u9898\u3002<\/li>\n<li>\u8981\u505c\u6b62\u670d\u52a1\u5668\uff0c\u8bf7\u518d\u6b21\u5355\u51fb &#8220;Go Live&#8221; \u6309\u94ae\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884chtml\u7a0b\u5e8f\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>vscode \u4e2d\u8fd0\u884c html \u7a0b\u5e8f\u9700\u8981\uff1a\u5b89\u88c5 live server \u6269\u5c55\uff1b\u521b\u5efa\u5e26\u6709 .html \u6269\u5c55\u540d\u7684 html \u6587\u4ef6\uff1b\u70b9\u51fb\u72b6\u6001\u680f\u4e2d\u7684 &#8220;go live&#8221; \u6309\u94ae\u8fd0\u884c live server\uff1blive server \u4f1a\u5728\u672c\u5730\u4e3b\u673a\u4e0a\u542f\u52a8\u670d\u52a1\u5668\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u52a0\u8f7d html \u7a0b\u5e8f\uff0c\u5b9e\u65f6\u663e\u793a\u66f4\u6539\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c HTML \u7a0b\u5e8f \u6b65\u9aa4 1\uff1a\u8bbe\u7f6e Live Server \u6269\u5c55 \u5728 VSCode \u7684\u6269\u5c55\u5e02\u573a\u4e2d\u641c\u7d22\u5e76\u5b89\u88c5 Live Server \u6269\u5c55\u3002 \u6b64\u6269\u5c55\u53ef\u5728\u672c\u5730\u4e3b\u673a\u4e0a\u542f\u52a8\u4e00\u4e2a\u5f00\u53d1\u670d\u52a1\u5668\uff0c\u5141\u8bb8\u60a8\u5b9e\u65f6\u67e5\u770b HTML \u66f4\u6539\u3002 \u6b65\u9aa4 2\uff1a\u521b\u5efa HTML \u6587\u4ef6 \u5728 VSCode \u4e2d\u521b\u5efa\u65b0\u6587\u4ef6\u5e76\u5c06\u5176\u6269\u5c55\u540d\u4e3a .html\uff0c\u4f8b\u5982 index.html\u3002 \u5728\u6587\u4ef6\u4e2d\u8f93\u5165 HTML \u4ee3\u7801\u3002 \u6b65\u9aa4 3\uff1a\u8fd0\u884c Live Server [&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-21369","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21369","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=21369"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21369\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21369"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21369"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21369"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}