{"id":273,"date":"2022-07-11T11:41:24","date_gmt":"2022-07-11T03:41:24","guid":{"rendered":"http:\/\/www.aqwu.net\/wp\/?p=273"},"modified":"2022-07-11T11:41:24","modified_gmt":"2022-07-11T03:41:24","slug":"%e5%be%ae%e8%bd%af%e6%8e%a8%e5%87%ba-visual-studio-code-server-%e8%bf%9c%e7%a8%8b%e5%bc%80%e5%8f%91%e6%9c%8d%e5%8a%a1","status":"publish","type":"post","link":"https:\/\/www.aqwu.net\/wp\/?p=273","title":{"rendered":"\u5fae\u8f6f\u63a8\u51fa Visual Studio Code Server \u8fdc\u7a0b\u5f00\u53d1\u670d\u52a1"},"content":{"rendered":"\n<p>\u65e9\u5728 2019 \u5e74\uff0c\u5fae\u8f6f\u5c31\u53d1\u5e03\u4e86\u8fdc\u7a0b\u5f00\u53d1\u6269\u5c55\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u672c\u5730 VS Code \u5728 Windows 11\/10 \u7684 Linux \u5b50\u7cfb\u7edf (WSL)\u3001Docker \u5bb9\u5668\u3001SSH \u7ba1\u7406\u7684\u8fdc\u7a0b\u7269\u7406\u6216\u865a\u62df\u673a\u4e0a\u8fdc\u7a0b\u5f00\u53d1\u5e94\u7528\u3002<\/p>\n\n\n\n<p>2020 \u5e74\uff0c\u5fae\u8f6f GitHub Codespaces \u53c8\u505a\u51fa\u4e86\u8fdb\u4e00\u6b65\u7684\u5347\u7ea7\uff0c\u652f\u6301\u5728\u6d4f\u89c8\u5668\u4e2d\u901a\u8fc7 VS Code \u8fdc\u7a0b\u5728\u865a\u62df\u673a\u4e0a\u5f00\u53d1\u5e94\u7528\u3002<\/p>\n\n\n\n<p>\u8fd1\u65e5\uff0c\u5fae\u8f6f\u5b98\u65b9\u5ba3\u5e03\u4e86\u4e00\u9879\u65b0\u7684\u540e\u7aef\u670d\u52a1 \u2014\u2014&nbsp;Visual Studio Code Server\uff0c\u4ee5\u53ca\u4e00\u4e2a\u53ef\u4ee5\u8f7b\u677e\u5b89\u88c5\u3001\u66f4\u65b0\u3001\u7ba1\u7406\u548c\u8fde\u63a5\u5230\u670d\u52a1\u7684 CLI\u3002<\/p>\n\n\n\n<p>\u636e\u4ecb\u7ecd\uff0c\u7528\u6237\u53ef\u4ee5\u5c06\u670d\u52a1\u5668\u5b89\u88c5\u5728\u4efb\u4f55\u4f4d\u7f6e\uff08\u672c\u5730\u5f00\u53d1\u673a\u5668\u3001\u4e91\u4e2d\u7684 VM \u7b49\uff09\uff0c\u5e76\u4f7f\u7528 VS Code for Web\uff08\u4e5f\u79f0\u4e3a vscode.dev\uff09\u901a\u8fc7\u6d4f\u89c8\u5668\u5b89\u5168\u8bbf\u95ee\uff0c\u800c\u65e0\u9700\u8bbe\u7f6e SSH \u6216 https\u3002<\/p>\n\n\n\n<p>Visual Studio Code Server \u76ee\u524d\u5904\u4e8e\u79c1\u4eba\u9884\u89c8\u9636\u6bb5\uff0c\u56e0\u6b64\u7528\u6237\u9700\u8981\u586b\u5199\u4e00\u4e2a\u6ce8\u518c\u8868\u5355\u6765\u7533\u8bf7\u8bbf\u95ee\u6743\u9650\u3002\u5982\u679c\u901a\u8fc7\u7533\u8bf7\uff0c\u5c06\u5728\u51e0\u5468\u5185\u6536\u5230\u90ae\u4ef6\u3002<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">\u4f7f\u7528\u65b9\u6cd5\u5982\u4e0b\uff1a<\/h2>\n\n\n\n<p>1\u3001\u5c06 VS Code Server \u5b89\u88c5\u5728\u8fdc\u7a0b\u673a\u5668\u4e0a\uff0c\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">wget -O- https:\/\/aka.ms\/install-vscode-server\/setup.sh | sh<\/pre>\n\n\n\n<p>2\u3001\u901a\u8fc7\u5728\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4ee5\u4e0b\u547d\u4ee4\u6765\u542f\u52a8 VS Code Server\uff1a<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">code-server<\/pre>\n\n\n\n<p>3\u3001\u7528\u6237\u7684\u8fdc\u7a0b\u673a\u5668\u5c06\u901a\u8fc7\u5b89\u5168\u96a7\u9053\u4e0e vscode.dev \u901a\u4fe1\uff0c\u65e0\u8bba\u5728\u54ea\u4e2a\u7f51\u7edc\u4e0a\uff0c\u90fd\u5141\u8bb8\u7528\u6237\u4ece vscode.dev \u8fde\u63a5\u5230\u8ba1\u7b97\u673a\u3002\u7528\u6237\u5c06\u83b7\u5f97\u4e00\u4e2a\u8bbe\u5907\u4ee3\u7801\u548c URL\uff0c\u5e76\u9a8c\u8bc1 GitHub \u5e10\u6237\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">Please enter the code 7644-1186 on https:\/\/github.com\/login\/device<\/pre>\n\n\n\n<p>4\u3001\u5982\u679c\u662f\u7b2c\u4e00\u6b21\u542f\u52a8 VS Code Server\uff0c\u7cfb\u7edf\u5c06\u63d0\u793a\u7528\u6237\u8f93\u5165\u8fde\u63a5\u540d\u79f0\u3002<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\"> What would you like to call this machine? (elegant-pitta)<\/pre>\n\n\n\n<p>5\u3001\u5728\u9a8c\u8bc1\u5e76\u63d0\u4f9b\u673a\u5668\u540d\u79f0\u540e\uff0cCLI \u4f1a\u542f\u52a8\u670d\u52a1\u5668\u5b9e\u4f8b\u5e76\u751f\u6210 vscode.dev URL\u3002\u63a5\u7740\uff0c\u7528\u6237\u5c31\u53ef\u4ee5\u5728\u4efb\u610f\u8bbe\u5907\u4e0a\u6253\u5f00\u6b64 URL \u6765\u5199\u4ee3\u7801\u4e86\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u65e9\u5728 2019 \u5e74\uff0c\u5fae\u8f6f\u5c31\u53d1\u5e03\u4e86\u8fdc\u7a0b\u5f00\u53d1\u6269\u5c55\uff0c\u8ba9\u7528\u6237\u53ef\u4ee5\u901a\u8fc7\u672c\u5730 VS Code \u5728 Windows 11\/1 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[17],"tags":[84],"class_list":["post-273","post","type-post","status-publish","format-standard","hentry","category-infonews","tag-visual-studio-code-server"],"views":1189,"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/273","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=273"}],"version-history":[{"count":1,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions"}],"predecessor-version":[{"id":274,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=\/wp\/v2\/posts\/273\/revisions\/274"}],"wp:attachment":[{"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=273"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=273"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.aqwu.net\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=273"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}