{"id":21330,"date":"2024-11-19T16:46:10","date_gmt":"2024-11-19T08:46:10","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21330\/"},"modified":"2024-11-19T16:46:10","modified_gmt":"2024-11-19T08:46:10","slug":"vscode%e6%80%8e%e4%b9%88%e6%9b%b4%e6%96%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21330\/","title":{"rendered":"vscode\u600e\u4e48\u66f4\u65b0"},"content":{"rendered":"<blockquote><p>\n  windows \u548c macos\uff1a\u5728\u5e94\u7528\u7a0b\u5e8f\u5185\u68c0\u67e5\u66f4\u65b0\u6216\u81ea\u52a8\u66f4\u65b0\u3002linux\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u66f4\u65b0\u6216\u901a\u8fc7\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\u3002\u5177\u4f53\u6b65\u9aa4\uff1a\u5e94\u7528\u7a0b\u5e8f\u5185\u66f4\u65b0\uff1awindows\/macos\uff1a\u6309\u5feb\u6377\u952e\u67e5\u770b\u201c\u66f4\u65b0\u201d\u9009\u9879\uff0c\u68c0\u67e5\u548c\u5b89\u88c5\u66f4\u65b0\u3002linux \u547d\u4ee4\u884c\u66f4\u65b0\uff1a\u8fd0\u884c code &#8211;update-id=\u3002\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u4e0e\u7cfb\u7edf\u5339\u914d\u7684\u6700\u65b0\u7248\u672c\u3002\u542f\u7528\u81ea\u52a8\u66f4\u65b0\uff08macos\/linux\uff09\uff1a\u8bbe\u7f6e\u547d\u4ee4\u6216\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u4ee5\u542f\u7528\u540e\u53f0\u66f4\u65b0\u68c0\u67e5\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052710182031378.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u66f4\u65b0\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u66f4\u65b0\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u66f4\u65b0 Visual Studio Code (VS Code)<\/strong><\/p>\n<p><strong>\u76f4\u63a5\u66f4\u65b0<\/strong><\/p>\n<ul>\n<li> <strong>macOS:<\/strong> \u6309\u4f4f Command (\u2318) \u952e + , \u6253\u5f00\u201c\u9996\u9009\u9879\u201d\u3002\u5728\u5de6\u4fa7\u680f\u4e2d\uff0c\u9009\u62e9\u201c\u66f4\u65b0\u201d\u3002\u70b9\u51fb\u201c\u68c0\u67e5\u66f4\u65b0\u201d\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002<\/li>\n<li> <strong>Windows:<\/strong> \u6309\u4f4f Ctrl + , \u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u3002\u5728\u5de6\u4fa7\u680f\u4e2d\uff0c\u9009\u62e9\u201c\u66f4\u65b0\u201d\u3002\u70b9\u51fb\u201c\u68c0\u67e5\u66f4\u65b0\u201d\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002<\/li>\n<li> <strong>Linux:<\/strong> \u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u3002\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/li>\n<\/ul>\n<pre>code --update-id=&lt;Your_System_ID&gt;<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5176\u4e2d \u662f\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c code &#8211;list-versions \u67e5\u770b\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u3002 <\/p>\n<p><strong>\u624b\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5<\/strong><\/p>\n<ul>\n<li>\u8bbf\u95ee VS Code \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/code.visualstudio.com\/<\/li>\n<li>\u9009\u62e9\u4e0e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5339\u914d\u7684\u7248\u672c\u3002<\/li>\n<li>\u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5b83\u4f1a\u81ea\u52a8\u8986\u76d6\u65e7\u7248\u672c\u3002<\/li>\n<\/ul>\n<p><strong>\u81ea\u52a8\u66f4\u65b0<\/strong><\/p>\n<ul>\n<li> <strong>Windows:<\/strong> VS Code \u4f1a\u5728\u540e\u53f0\u5b9a\u671f\u68c0\u67e5\u66f4\u65b0\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5b83\u4f1a\u4e0b\u8f7d\u5e76\u5728\u4e0b\u6b21\u542f\u52a8\u65f6\u5b89\u88c5\u3002<\/li>\n<li> <strong>macOS \u548c Linux:<\/strong> \u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u4f1a\u81ea\u52a8\u66f4\u65b0 VS Code\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\u81ea\u52a8\u66f4\u65b0\uff1a<\/li>\n<\/ul>\n<ol>\n<li>\n<p><strong>macOS:<\/strong> \u6253\u5f00\u201c\u7ec8\u7aef\u201d\u5e76\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n<pre>defaults write com.microsoft.VSCode InstallCheckAfterUpdate -bool true<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<li>\n<p><strong>Linux:<\/strong> \u7f16\u8f91\u4ee5\u4e0b\u6587\u4ef6\uff1a<\/p>\n<pre>\/usr\/share\/applications\/visual-studio-code.desktop<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u627e\u5230\u4ee5\u4e0b\u884c\uff1a<\/p>\n<pre>Exec=\/usr\/share\/code\/code %U<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/p>\n<p>\u5c06\u5176\u66ff\u6362\u4e3a\uff1a<\/p>\n<pre>Exec=\/usr\/share\/code\/code --check-updates %U<\/pre>\n<p> \u767b\u5f55\u540e\u590d\u5236 <\/li>\n<\/ol>\n<p>\u4fdd\u5b58\u5e76\u5173\u95ed\u6587\u4ef6\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u66f4\u65b0\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>windows \u548c macos\uff1a\u5728\u5e94\u7528\u7a0b\u5e8f\u5185\u68c0\u67e5\u66f4\u65b0\u6216\u81ea\u52a8\u66f4\u65b0\u3002linux\uff1a\u4f7f\u7528\u547d\u4ee4\u884c\u66f4\u65b0\u6216\u901a\u8fc7\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\u3002\u5177\u4f53\u6b65\u9aa4\uff1a\u5e94\u7528\u7a0b\u5e8f\u5185\u66f4\u65b0\uff1awindows\/macos\uff1a\u6309\u5feb\u6377\u952e\u67e5\u770b\u201c\u66f4\u65b0\u201d\u9009\u9879\uff0c\u68c0\u67e5\u548c\u5b89\u88c5\u66f4\u65b0\u3002linux \u547d\u4ee4\u884c\u66f4\u65b0\uff1a\u8fd0\u884c code &#8211;update-id=\u3002\u624b\u52a8\u4e0b\u8f7d\u5b89\u88c5\uff1a\u8bbf\u95ee\u5b98\u65b9\u7f51\u7ad9\u4e0b\u8f7d\u4e0e\u7cfb\u7edf\u5339\u914d\u7684\u6700\u65b0\u7248\u672c\u3002\u542f\u7528\u81ea\u52a8\u66f4\u65b0\uff08macos\/linux\uff09\uff1a\u8bbe\u7f6e\u547d\u4ee4\u6216\u7f16\u8f91\u914d\u7f6e\u6587\u4ef6\u4ee5\u542f\u7528\u540e\u53f0\u66f4\u65b0\u68c0\u67e5\u3002 \u5982\u4f55\u66f4\u65b0 Visual Studio Code (VS Code) \u76f4\u63a5\u66f4\u65b0 macOS: \u6309\u4f4f Command (\u2318) \u952e + , \u6253\u5f00\u201c\u9996\u9009\u9879\u201d\u3002\u5728\u5de6\u4fa7\u680f\u4e2d\uff0c\u9009\u62e9\u201c\u66f4\u65b0\u201d\u3002\u70b9\u51fb\u201c\u68c0\u67e5\u66f4\u65b0\u201d\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002 Windows: \u6309\u4f4f Ctrl + , \u6253\u5f00\u201c\u8bbe\u7f6e\u201d\u3002\u5728\u5de6\u4fa7\u680f\u4e2d\uff0c\u9009\u62e9\u201c\u66f4\u65b0\u201d\u3002\u70b9\u51fb\u201c\u68c0\u67e5\u66f4\u65b0\u201d\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5c06\u81ea\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5\u3002 Linux: \u6253\u5f00\u4e00\u4e2a\u7ec8\u7aef\u7a97\u53e3\u3002\u8f93\u5165\u4ee5\u4e0b\u547d\u4ee4\uff1a code &#8211;update-id=&lt;Your_System_ID&gt; \u767b\u5f55\u540e\u590d\u5236 \u5176\u4e2d \u662f\u53ef\u4ee5\u901a\u8fc7\u8fd0\u884c code &#8211;list-versions \u67e5\u770b\u7684\u552f\u4e00\u6807\u8bc6\u7b26\u3002 \u624b\u52a8\u4e0b\u8f7d\u5e76\u5b89\u88c5 \u8bbf\u95ee VS Code \u5b98\u65b9\u7f51\u7ad9\uff1ahttps:\/\/code.visualstudio.com\/ \u9009\u62e9\u4e0e\u4f60\u7684\u64cd\u4f5c\u7cfb\u7edf\u5339\u914d\u7684\u7248\u672c\u3002 \u4e0b\u8f7d\u5e76\u5b89\u88c5\u6700\u65b0\u7248\u672c\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u5b83\u4f1a\u81ea\u52a8\u8986\u76d6\u65e7\u7248\u672c\u3002 \u81ea\u52a8\u66f4\u65b0 Windows: VS Code \u4f1a\u5728\u540e\u53f0\u5b9a\u671f\u68c0\u67e5\u66f4\u65b0\u3002\u5982\u679c\u6709\u53ef\u7528\u66f4\u65b0\uff0c\u5b83\u4f1a\u4e0b\u8f7d\u5e76\u5728\u4e0b\u6b21\u542f\u52a8\u65f6\u5b89\u88c5\u3002 macOS \u548c Linux: \u9ed8\u8ba4\u60c5\u51b5\u4e0b\u4e0d\u4f1a\u81ea\u52a8\u66f4\u65b0 VS Code\u3002\u4f60\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u542f\u7528\u81ea\u52a8\u66f4\u65b0\uff1a [&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-21330","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21330","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=21330"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21330\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21330"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21330"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21330"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}