{"id":21303,"date":"2024-11-19T17:21:43","date_gmt":"2024-11-19T09:21:43","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21303\/"},"modified":"2024-11-19T17:21:43","modified_gmt":"2024-11-19T09:21:43","slug":"vscode%e8%ae%be%e7%bd%ae%e5%9c%a8%e5%93%aa","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21303\/","title":{"rendered":"vscode\u8bbe\u7f6e\u5728\u54ea"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5728 visual studio code \u4e2d\u67e5\u627e\u8bbe\u7f6e\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1\uff09\u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\uff1b2\uff09\u4f7f\u7528\u641c\u7d22\u6846\u67e5\u627e\u7279\u5b9a\u8bbe\u7f6e\uff1b3\uff09\u5355\u51fb\u8bbe\u7f6e\u503c\u53f3\u4fa7\u7684\u94c5\u7b14\u56fe\u6807\u8fdb\u884c\u7f16\u8f91\u3002\u5e38\u89c1\u7684\u8bbe\u7f6e\u4f4d\u7f6e\u5305\u62ec\u201c\u4e3b\u9898\u201d\u3001\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u3001\u201c\u952e\u7ed1\u5b9a\u201d\u548c\u201c\u5de5\u4f5c\u533a\u8bbe\u7f6e\u201d\u3002\u66f4\u6539\u8bbe\u7f6e\u540e\u9700\u8981\u91cd\u65b0\u542f\u52a8 vscode \u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/15\/2024051507391915210.jpg\" class=\"aligncenter\" title=\"vscode\u8bbe\u7f6e\u5728\u54ea\u63d2\u56fe\" alt=\"vscode\u8bbe\u7f6e\u5728\u54ea\u63d2\u56fe\" \/><\/p>\n<p><strong>Visual Studio Code (VSCode) \u8bbe\u7f6e\u4f4d\u7f6e<\/strong><\/p>\n<p>\u8981\u5728 Visual Studio Code \u4e2d\u67e5\u627e\u8bbe\u7f6e\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\uff1a<\/strong><\/p>\n<ul>\n<li>Windows\/Linux\uff1a\u6309 Ctrl + ,<\/li>\n<li>macOS\uff1a\u6309 Cmd + ,<\/li>\n<\/ul>\n<\/li>\n<li><strong>\u201c\u8bbe\u7f6e\u201d\u9762\u677f\u5c06\u51fa\u73b0\u5728\u5c4f\u5e55\u53f3\u4fa7\u3002<\/strong><\/li>\n<\/ol>\n<p><strong>\u8bbe\u7f6e\u7c7b\u578b<\/strong><\/p>\n<p>VSCode \u4e2d\u7684\u8bbe\u7f6e\u5206\u4e3a\u4ee5\u4e0b\u51e0\u7c7b\uff1a<\/p>\n<ul>\n<li> <strong>\u7528\u6237\u8bbe\u7f6e\uff1a<\/strong>\u9002\u7528\u4e8e\u5355\u4e2a\u7528\u6237\u7684\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 .\/settings.json \u6587\u4ef6\u4e2d\u3002<\/li>\n<li> <strong>\u5de5\u4f5c\u533a\u8bbe\u7f6e\uff1a<\/strong>\u9002\u7528\u4e8e\u7279\u5b9a\u5de5\u4f5c\u533a\u7684\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 .vscode\/workspace.json \u6587\u4ef6\u4e2d\u3002<\/li>\n<li> <strong>\u9ed8\u8ba4\u8bbe\u7f6e\uff1a<\/strong>\u9002\u7528\u4e8e\u6240\u6709\u7528\u6237\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 VSCode \u7684\u5b89\u88c5\u76ee\u5f55\u4e2d\u3002<\/li>\n<\/ul>\n<p><strong>\u67e5\u627e\u548c\u7f16\u8f91\u8bbe\u7f6e<\/strong><\/p>\n<ul>\n<li> <strong>\u641c\u7d22\u6846\uff1a<\/strong>\u5728\u201c\u8bbe\u7f6e\u201d\u9762\u677f\u9876\u90e8\u4f7f\u7528\u641c\u7d22\u6846\u67e5\u627e\u7279\u5b9a\u8bbe\u7f6e\u3002<\/li>\n<li> <strong>\u7f16\u8f91\u8bbe\u7f6e\uff1a<\/strong>\u5355\u51fb\u8bbe\u7f6e\u503c\u53f3\u4fa7\u7684\u94c5\u7b14\u56fe\u6807\u4ee5\u7f16\u8f91\u5b83\u3002<\/li>\n<li> <strong>\u91cd\u7f6e\u8bbe\u7f6e\uff1a<\/strong>\u5355\u51fb\u53f3\u4e0a\u89d2\u7684\u9f7f\u8f6e\u56fe\u6807\u4ee5\u91cd\u7f6e\u8bbe\u7f6e\u3002<\/li>\n<\/ul>\n<p><strong>\u5e38\u89c1\u8bbe\u7f6e\u4f4d\u7f6e<\/strong><\/p>\n<p>\u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u8bbe\u7f6e\u7684\u4f4d\u7f6e\uff1a<\/p>\n<ul>\n<li> <strong>\u4e3b\u9898\uff1a<\/strong>\u5916\u89c2 &gt; \u4e3b\u9898<\/li>\n<li> <strong>\u5b57\u4f53\u5927\u5c0f\uff1a<\/strong>\u7f16\u8f91\u5668 &gt; \u5b57\u4f53\u5927\u5c0f<\/li>\n<li> <strong>\u952e\u7ed1\u5b9a\uff1a<\/strong>\u952e\u76d8\u5feb\u6377\u952e &gt; \u952e\u7ed1\u5b9a<\/li>\n<li> <strong>\u6269\u5c55\uff1a<\/strong>\u6269\u5c55 &gt; \u5df2\u5b89\u88c5<\/li>\n<li> <strong>\u5de5\u4f5c\u533a\u8bbe\u7f6e\uff1a<\/strong>\u6587\u4ef6 &gt; \u9996\u9009\u9879 &gt; \u8bbe\u7f6e &gt; \u5de5\u4f5c\u533a\u8bbe\u7f6e<\/li>\n<\/ul>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li>\u66f4\u6539\u8bbe\u7f6e\u540e\uff0c\u9700\u8981\u91cd\u65b0\u542f\u52a8 VSCode \u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002<\/li>\n<li>\u67d0\u4e9b\u8bbe\u7f6e\u53ef\u80fd\u9700\u8981\u5728 .json \u6587\u4ef6\u4e2d\u624b\u52a8\u7f16\u8f91\uff0c\u53ef\u4ee5\u5728\u201c\u7528\u6237\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e2d\u627e\u5230\u5b83\u4eec\u3002<\/li>\n<li>VSCode \u6269\u5c55\u7a0b\u5e8f\u53ef\u4ee5\u6dfb\u52a0\u81ea\u5df1\u7684\u8bbe\u7f6e\u9009\u9879\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u8bbe\u7f6e\u5728\u54ea\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>\u8981\u5728 visual studio code \u4e2d\u67e5\u627e\u8bbe\u7f6e\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a1\uff09\u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\uff1b2\uff09\u4f7f\u7528\u641c\u7d22\u6846\u67e5\u627e\u7279\u5b9a\u8bbe\u7f6e\uff1b3\uff09\u5355\u51fb\u8bbe\u7f6e\u503c\u53f3\u4fa7\u7684\u94c5\u7b14\u56fe\u6807\u8fdb\u884c\u7f16\u8f91\u3002\u5e38\u89c1\u7684\u8bbe\u7f6e\u4f4d\u7f6e\u5305\u62ec\u201c\u4e3b\u9898\u201d\u3001\u201c\u5b57\u4f53\u5927\u5c0f\u201d\u3001\u201c\u952e\u7ed1\u5b9a\u201d\u548c\u201c\u5de5\u4f5c\u533a\u8bbe\u7f6e\u201d\u3002\u66f4\u6539\u8bbe\u7f6e\u540e\u9700\u8981\u91cd\u65b0\u542f\u52a8 vscode \u4ee5\u4f7f\u66f4\u6539\u751f\u6548\u3002 Visual Studio Code (VSCode) \u8bbe\u7f6e\u4f4d\u7f6e \u8981\u5728 Visual Studio Code \u4e2d\u67e5\u627e\u8bbe\u7f6e\uff0c\u8bf7\u6267\u884c\u4ee5\u4e0b\u6b65\u9aa4\uff1a \u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\uff1a Windows\/Linux\uff1a\u6309 Ctrl + , macOS\uff1a\u6309 Cmd + , \u201c\u8bbe\u7f6e\u201d\u9762\u677f\u5c06\u51fa\u73b0\u5728\u5c4f\u5e55\u53f3\u4fa7\u3002 \u8bbe\u7f6e\u7c7b\u578b VSCode \u4e2d\u7684\u8bbe\u7f6e\u5206\u4e3a\u4ee5\u4e0b\u51e0\u7c7b\uff1a \u7528\u6237\u8bbe\u7f6e\uff1a\u9002\u7528\u4e8e\u5355\u4e2a\u7528\u6237\u7684\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 .\/settings.json \u6587\u4ef6\u4e2d\u3002 \u5de5\u4f5c\u533a\u8bbe\u7f6e\uff1a\u9002\u7528\u4e8e\u7279\u5b9a\u5de5\u4f5c\u533a\u7684\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 .vscode\/workspace.json \u6587\u4ef6\u4e2d\u3002 \u9ed8\u8ba4\u8bbe\u7f6e\uff1a\u9002\u7528\u4e8e\u6240\u6709\u7528\u6237\u7684\u9ed8\u8ba4\u8bbe\u7f6e\uff0c\u5b58\u50a8\u5728 VSCode \u7684\u5b89\u88c5\u76ee\u5f55\u4e2d\u3002 \u67e5\u627e\u548c\u7f16\u8f91\u8bbe\u7f6e \u641c\u7d22\u6846\uff1a\u5728\u201c\u8bbe\u7f6e\u201d\u9762\u677f\u9876\u90e8\u4f7f\u7528\u641c\u7d22\u6846\u67e5\u627e\u7279\u5b9a\u8bbe\u7f6e\u3002 \u7f16\u8f91\u8bbe\u7f6e\uff1a\u5355\u51fb\u8bbe\u7f6e\u503c\u53f3\u4fa7\u7684\u94c5\u7b14\u56fe\u6807\u4ee5\u7f16\u8f91\u5b83\u3002 \u91cd\u7f6e\u8bbe\u7f6e\uff1a\u5355\u51fb\u53f3\u4e0a\u89d2\u7684\u9f7f\u8f6e\u56fe\u6807\u4ee5\u91cd\u7f6e\u8bbe\u7f6e\u3002 \u5e38\u89c1\u8bbe\u7f6e\u4f4d\u7f6e \u4ee5\u4e0b\u662f\u4e00\u4e9b\u5e38\u89c1\u8bbe\u7f6e\u7684\u4f4d\u7f6e\uff1a \u4e3b\u9898\uff1a\u5916\u89c2 &gt; \u4e3b\u9898 \u5b57\u4f53\u5927\u5c0f\uff1a\u7f16\u8f91\u5668 &gt; \u5b57\u4f53\u5927\u5c0f \u952e\u7ed1\u5b9a\uff1a\u952e\u76d8\u5feb\u6377\u952e &gt; \u952e\u7ed1\u5b9a \u6269\u5c55\uff1a\u6269\u5c55 [&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-21303","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21303","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=21303"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21303\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21303"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21303"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21303"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}