{"id":21405,"date":"2024-11-19T16:14:18","date_gmt":"2024-11-19T08:14:18","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21405\/"},"modified":"2024-11-19T16:14:18","modified_gmt":"2024-11-19T08:14:18","slug":"vscode%e6%80%8e%e4%b9%88%e8%bf%90%e8%a1%8c%e7%bb%88%e7%ab%af","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21405\/","title":{"rendered":"vscode\u600e\u4e48\u8fd0\u884c\u7ec8\u7aef"},"content":{"rendered":"<blockquote><p>\n  \u5728 vscode \u4e2d\u8fd0\u884c\u7ec8\u7aef\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u6309\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + \uff1bmacos\uff1acmd + \uff09\u6253\u5f00\u7ec8\u7aef\u9762\u677f\uff1b\u9009\u62e9\u7ec8\u7aef\u7c7b\u578b\uff08windows\uff1apowershell\uff1bmacos\/linux\uff1abash\uff09\uff1b\u8f93\u5165\u547d\u4ee4\u56de\u8f66\u8fd0\u884c\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052714571891889.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u8fd0\u884c\u7ec8\u7aef\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u8fd0\u884c\u7ec8\u7aef\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c\u7ec8\u7aef<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\u8fd0\u884c\u7ec8\u7aef\u53ea\u9700\u51e0\u6b65\u5373\u53ef\uff1a<\/p>\n<p><strong>1. \u6253\u5f00\u7ec8\u7aef\u9762\u677f<\/strong><\/p>\n<ul>\n<li> <strong>Windows\/Linux\uff1a<\/strong>\u6309 Ctrl + (\u53cd\u659c\u6760)<\/li>\n<li> <strong>macOS\uff1a<\/strong>\u6309 Cmd + (\u53cd\u659c\u6760)<\/li>\n<\/ul>\n<p><strong>2. \u9009\u62e9\u7ec8\u7aef\u7c7b\u578b<\/strong><\/p>\n<p>\u6253\u5f00\u7ec8\u7aef\u9762\u677f\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e9b\u9009\u9879\u5361\uff0c\u6bcf\u4e2a\u9009\u9879\u5361\u4ee3\u8868\u4e00\u4e2a\u4e0d\u540c\u7684\u7ec8\u7aef\u7c7b\u578b\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u4e00\u4e2a\u540d\u4e3a &#8220;PowerShell&#8221; \u6216 &#8220;Bash&#8221; \u7684\u9009\u9879\u5361\u3002<\/p>\n<ul>\n<li> <strong>PowerShell\uff1a<\/strong>Windows \u7684\u9ed8\u8ba4\u7ec8\u7aef<\/li>\n<li> <strong>Bash\uff1a<\/strong>Linux \u548c macOS \u7684\u9ed8\u8ba4\u7ec8\u7aef<\/li>\n<li> <strong>\u547d\u4ee4\u884c\uff1a<\/strong>Windows \u4e2d\u7684\u53e6\u4e00\u4e2a\u9009\u9879\uff0c\u7b49\u540c\u4e8e PowerShell<\/li>\n<\/ul>\n<p><strong>3. \u8fd0\u884c\u547d\u4ee4<\/strong><\/p>\n<p>\u5728\u9009\u5b9a\u7684\u7ec8\u7aef\u9009\u9879\u5361\u4e2d\uff0c\u4f60\u5c31\u53ef\u4ee5\u50cf\u5f80\u5e38\u4e00\u6837\u8f93\u5165\u547d\u4ee4\u5e76\u56de\u8f66\u8fd0\u884c\u3002<\/p>\n<p><strong>\u63d0\u793a\uff1a<\/strong><\/p>\n<ul>\n<li> <strong>\u542f\u52a8\u6587\u4ef6\uff1a<\/strong>\u8981\u542f\u52a8\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ea\u9700\u5c06\u5b83\u62d6\u653e\u5230\u7ec8\u7aef\u7a97\u53e3\u4e2d\u3002<\/li>\n<li> <strong>\u591a\u7ec8\u7aef\u9009\u9879\u5361\uff1a<\/strong>\u4f60\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u7ec8\u7aef\u9762\u677f\u5e95\u90e8\u7684 &#8220;+&#8221; \u6309\u94ae\u6253\u5f00\u591a\u4e2a\u7ec8\u7aef\u9009\u9879\u5361\u3002<\/li>\n<li> <strong>\u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff1a<\/strong>\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728 &#8220;\u4ee3\u7801\u8bbe\u7f6e&#8221; \u4e2d\u641c\u7d22 &#8220;\u7ec8\u7aef&#8221; \u6765\u81ea\u5b9a\u4e49\u7ec8\u7aef\u8bbe\u7f6e\uff0c\u5305\u62ec\u5916\u89c2\u548c\u952e\u76d8\u5feb\u6377\u952e\u3002<\/li>\n<li> <strong>WSL \u96c6\u6210\uff1a<\/strong>\u5bf9\u4e8e Windows \u7528\u6237\uff0cVSCode \u96c6\u6210\u4e86 Windows \u5b50\u7cfb\u7edf for Linux (WSL)\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7 &#8220;\u6587\u4ef6 &gt; \u9996\u9009\u9879 &gt; \u8bbe\u7f6e&#8221; \u4e2d\u7684 &#8220;WSL \u96c6\u6210&#8221; \u9009\u9879\u5361\u542f\u7528\u5b83\u3002\u542f\u7528\u540e\uff0c\u4f60\u53ef\u4ee5\u5728 VSCode \u4e2d\u8fd0\u884c WSL \u547d\u4ee4\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8fd0\u884c\u7ec8\u7aef\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\u7ec8\u7aef\u7684\u6b65\u9aa4\u5982\u4e0b\uff1a\u6309\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + \uff1bmacos\uff1acmd + \uff09\u6253\u5f00\u7ec8\u7aef\u9762\u677f\uff1b\u9009\u62e9\u7ec8\u7aef\u7c7b\u578b\uff08windows\uff1apowershell\uff1bmacos\/linux\uff1abash\uff09\uff1b\u8f93\u5165\u547d\u4ee4\u56de\u8f66\u8fd0\u884c\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u8fd0\u884c\u7ec8\u7aef \u5728 VSCode \u4e2d\u8fd0\u884c\u7ec8\u7aef\u53ea\u9700\u51e0\u6b65\u5373\u53ef\uff1a 1. \u6253\u5f00\u7ec8\u7aef\u9762\u677f Windows\/Linux\uff1a\u6309 Ctrl + (\u53cd\u659c\u6760) macOS\uff1a\u6309 Cmd + (\u53cd\u659c\u6760) 2. \u9009\u62e9\u7ec8\u7aef\u7c7b\u578b \u6253\u5f00\u7ec8\u7aef\u9762\u677f\u540e\uff0c\u4f60\u4f1a\u770b\u5230\u4e00\u4e9b\u9009\u9879\u5361\uff0c\u6bcf\u4e2a\u9009\u9879\u5361\u4ee3\u8868\u4e00\u4e2a\u4e0d\u540c\u7684\u7ec8\u7aef\u7c7b\u578b\u3002\u9ed8\u8ba4\u60c5\u51b5\u4e0b\uff0c\u4f60\u5e94\u8be5\u4f1a\u770b\u5230\u4e00\u4e2a\u540d\u4e3a &#8220;PowerShell&#8221; \u6216 &#8220;Bash&#8221; \u7684\u9009\u9879\u5361\u3002 PowerShell\uff1aWindows \u7684\u9ed8\u8ba4\u7ec8\u7aef Bash\uff1aLinux \u548c macOS \u7684\u9ed8\u8ba4\u7ec8\u7aef \u547d\u4ee4\u884c\uff1aWindows \u4e2d\u7684\u53e6\u4e00\u4e2a\u9009\u9879\uff0c\u7b49\u540c\u4e8e PowerShell 3. \u8fd0\u884c\u547d\u4ee4 \u5728\u9009\u5b9a\u7684\u7ec8\u7aef\u9009\u9879\u5361\u4e2d\uff0c\u4f60\u5c31\u53ef\u4ee5\u50cf\u5f80\u5e38\u4e00\u6837\u8f93\u5165\u547d\u4ee4\u5e76\u56de\u8f66\u8fd0\u884c\u3002 \u63d0\u793a\uff1a \u542f\u52a8\u6587\u4ef6\uff1a\u8981\u542f\u52a8\u4e00\u4e2a\u6587\u4ef6\uff0c\u53ea\u9700\u5c06\u5b83\u62d6\u653e\u5230\u7ec8\u7aef\u7a97\u53e3\u4e2d\u3002 \u591a\u7ec8\u7aef\u9009\u9879\u5361\uff1a\u4f60\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u7ec8\u7aef\u9762\u677f\u5e95\u90e8\u7684 &#8220;+&#8221; \u6309\u94ae\u6253\u5f00\u591a\u4e2a\u7ec8\u7aef\u9009\u9879\u5361\u3002 \u81ea\u5b9a\u4e49\u8bbe\u7f6e\uff1a\u4f60\u53ef\u4ee5\u901a\u8fc7\u5728 &#8220;\u4ee3\u7801\u8bbe\u7f6e&#8221; \u4e2d\u641c\u7d22 &#8220;\u7ec8\u7aef&#8221; \u6765\u81ea\u5b9a\u4e49\u7ec8\u7aef\u8bbe\u7f6e\uff0c\u5305\u62ec\u5916\u89c2\u548c\u952e\u76d8\u5feb\u6377\u952e\u3002 WSL \u96c6\u6210\uff1a\u5bf9\u4e8e Windows [&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-21405","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21405","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=21405"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21405\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21405"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21405"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21405"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}