{"id":21417,"date":"2024-11-19T08:45:41","date_gmt":"2024-11-19T00:45:41","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21417\/"},"modified":"2024-11-19T08:45:41","modified_gmt":"2024-11-19T00:45:41","slug":"vscode%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8chtml%e7%95%8c%e9%9d%a2","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21417\/","title":{"rendered":"vscode\u600e\u4e48\u8fd0\u884chtml\u754c\u9762"},"content":{"rendered":"<blockquote><p>\n  \u5728 vscode \u4e2d\u8fd0\u884c html \u754c\u9762\u53ea\u9700\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b89\u88c5 live server \u6269\u5c55\u521b\u5efa html \u6587\u4ef6\u5e76\u7f16\u5199\u4ee3\u7801\u542f\u52a8 live server\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u4fdd\u5b58\u6587\u4ef6\u4ee5\u66f4\u65b0\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052715481641511.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u8fd0\u884chtml\u754c\u9762\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u8fd0\u884chtml\u754c\u9762\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c HTML \u754c\u9762<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\u8fd0\u884c HTML \u754c\u9762\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<p><strong>1. \u5b89\u88c5 Live Server \u6269\u5c55<\/strong><\/p>\n<p>\u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5 Live Server \u6269\u5c55\u3002\u5b83\u5c06\u5141\u8bb8\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u5b9e\u65f6\u67e5\u770b HTML \u66f4\u6539\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 VSCode \u7684\u6269\u5c55\u5e02\u573a\u5b89\u88c5\u8be5\u6269\u5c55\u3002<\/p>\n<p><span>\u7acb\u5373\u5b66\u4e60<\/span>\u201c\u201d\uff1b<\/p>\n<p><strong>2. \u521b\u5efa HTML \u6587\u4ef6<\/strong><\/p>\n<p>\u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a\u5e26\u6709.html\u6269\u5c55\u540d\u7684 HTML \u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u547d\u540d\u4e3aindex.html\u3002<\/p>\n<p><strong>3. \u7f16\u5199 HTML \u4ee3\u7801<\/strong><\/p>\n<p>\u5728 HTML \u6587\u4ef6\u4e2d\uff0c\u7f16\u5199\u4f60\u7684 HTML \u4ee3\u7801\u3002\u786e\u4fdd\u5305\u542b\u5fc5\u8981\u7684<\/p>\n<p>\u548c\u6807\u7b7e\u3002 <\/p>\n<p><strong>4. \u542f\u52a8 Live Server<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\uff0c\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff08\u5feb\u6377\u952e\uff1aCtrl + Shift + P\uff0cMac\uff1aCmd + Shift + P\uff09\u3002\u8f93\u5165\u201cLive Server\u201d\u5e76\u6309 Enter\u3002<\/p>\n<p><strong>5. \u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b<\/strong><\/p>\n<p>Live Server \u5c06\u5728\u4f60\u9ed8\u8ba4\u7684 Web \u6d4f\u89c8\u5668\u4e2d\u542f\u52a8\u4e00\u4e2a\u670d\u52a1\u5668\u5e76\u52a0\u8f7d\u4f60\u7684 HTML \u6587\u4ef6\u3002\u4f60\u5c06\u80fd\u591f\u770b\u5230\u5b9e\u65f6\u66f4\u6539\u5e76\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u4f60\u7684 HTML \u754c\u9762\u3002<\/p>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u4fdd\u5b58\u4f60\u7684 HTML \u6587\u4ef6\uff0c\u4ee5\u5728\u6d4f\u89c8\u5668\u4e2d\u770b\u5230\u5b9e\u65f6\u66f4\u65b0\u3002<\/li>\n<li>\u4f60\u53ef\u4ee5\u8c03\u6574 Live Server \u7684\u8bbe\u7f6e\u4ee5\u4fee\u6539\u7aef\u53e3\u53f7\u548c\u5176\u4ed6\u9009\u9879\u3002<\/li>\n<li>\u5982\u679c\u4f60\u9047\u5230\u4efb\u4f55\u95ee\u9898\uff0c\u8bf7\u5c1d\u8bd5\u91cd\u65b0\u542f\u52a8 Live Server \u6216 VSCode\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884chtml\u754c\u9762\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 vscode \u4e2d\u8fd0\u884c html \u754c\u9762\u53ea\u9700\u4ee5\u4e0b\u6b65\u9aa4\uff1a\u5b89\u88c5 live server \u6269\u5c55\u521b\u5efa html \u6587\u4ef6\u5e76\u7f16\u5199\u4ee3\u7801\u542f\u52a8 live server\u5728\u6d4f\u89c8\u5668\u4e2d\u67e5\u770b\u4fdd\u5b58\u6587\u4ef6\u4ee5\u66f4\u65b0 \u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c HTML \u754c\u9762 \u5728 VSCode \u4e2d\u8fd0\u884c HTML \u754c\u9762\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u9075\u5faa\u4ee5\u4e0b\u6b65\u9aa4\uff1a 1. \u5b89\u88c5 Live Server \u6269\u5c55 \u9996\u5148\uff0c\u4f60\u9700\u8981\u5b89\u88c5 Live Server \u6269\u5c55\u3002\u5b83\u5c06\u5141\u8bb8\u4f60\u5728\u6d4f\u89c8\u5668\u4e2d\u5b9e\u65f6\u67e5\u770b HTML \u66f4\u6539\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 VSCode \u7684\u6269\u5c55\u5e02\u573a\u5b89\u88c5\u8be5\u6269\u5c55\u3002 \u7acb\u5373\u5b66\u4e60\u201c\u201d\uff1b 2. \u521b\u5efa HTML \u6587\u4ef6 \u521b\u5efa\u4e00\u4e2a\u65b0\u6587\u4ef6\u5e76\u5c06\u5176\u4fdd\u5b58\u4e3a\u5e26\u6709.html\u6269\u5c55\u540d\u7684 HTML \u6587\u4ef6\u3002\u4f8b\u5982\uff0c\u4f60\u53ef\u4ee5\u5c06\u5176\u547d\u540d\u4e3aindex.html\u3002 3. \u7f16\u5199 HTML \u4ee3\u7801 \u5728 HTML \u6587\u4ef6\u4e2d\uff0c\u7f16\u5199\u4f60\u7684 HTML \u4ee3\u7801\u3002\u786e\u4fdd\u5305\u542b\u5fc5\u8981\u7684 \u548c\u6807\u7b7e\u3002 4. \u542f\u52a8 [&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-21417","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21417","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=21417"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21417\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21417"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21417"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21417"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}