{"id":21274,"date":"2024-11-19T10:05:32","date_gmt":"2024-11-19T02:05:32","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21274\/"},"modified":"2024-11-19T10:05:32","modified_gmt":"2024-11-19T02:05:32","slug":"vscode%e7%bb%88%e7%ab%af%e8%bf%90%e8%a1%8c%e5%be%88%e6%85%a2%e6%80%8e%e4%b9%88%e5%8a%9e","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21274\/","title":{"rendered":"vscode\u7ec8\u7aef\u8fd0\u884c\u5f88\u6162\u600e\u4e48\u529e"},"content":{"rendered":"<blockquote><p>\n  vscode \u7ec8\u7aef\u8fd0\u884c\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898\u5e38\u89c1\u539f\u56e0\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff1a\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u8fdb\u7a0b\uff0c\u4f18\u5316 shell \u914d\u7f6e\u3002\u7981\u7528\u6216\u5378\u8f7d\u5f15\u8d77\u95ee\u9898\u7684\u6269\u5c55\u7a0b\u5e8f\u3002\u4f18\u5316 ssh \u8fde\u63a5\uff0c\u4f7f\u7528 ssh \u4ee3\u7406\u6216\u5b89\u88c5 vscode remote extension\u3002\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u589e\u52a0\u7cfb\u7edf\u5185\u5b58\u6216\u5347\u7ea7 cpu\u3002\u8c03\u6574\u7ec8\u7aef\u8bbe\u7f6e\uff0c\u5982\u884c\u7f13\u51b2\u533a\u5927\u5c0f\u6216\u6587\u672c\u7f16\u7801\u3002\u4f7f\u7528 ssd \u6216\u4f18\u5316\u6587\u4ef6\u7cfb\u7edf\u4ee5\u63d0\u9ad8\u78c1\u76d8\u6027\u80fd\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/15\/2024051506002721188.jpg\" class=\"aligncenter\" title=\"vscode\u7ec8\u7aef\u8fd0\u884c\u5f88\u6162\u600e\u4e48\u529e\u63d2\u56fe\" alt=\"vscode\u7ec8\u7aef\u8fd0\u884c\u5f88\u6162\u600e\u4e48\u529e\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u89e3\u51b3 VSCode \u7ec8\u7aef\u8fd0\u884c\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898<\/strong><\/p>\n<p>VSCode \u7684\u7ec8\u7aef\u6709\u65f6\u53ef\u80fd\u4f1a\u8fd0\u884c\u7f13\u6162\uff0c\u5f71\u54cd\u5f00\u53d1\u4f53\u9a8c\u3002\u4ee5\u4e0b\u5217\u51fa\u4e86\u4e00\u4e9b\u5e38\u89c1\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6cd5\uff1a<\/p>\n<p><strong>1. \u8fc7\u591a\u7684\u6d3b\u52a8\u8fdb\u7a0b<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4e86\u592a\u591a\u8fdb\u7a0b\u4f1a\u6d88\u8017\u7cfb\u7edf\u8d44\u6e90\uff0c\u4ece\u800c\u5bfc\u81f4\u901f\u5ea6\u53d8\u6162\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u8fdb\u7a0b\uff0c\u4f8b\u5982\u95f2\u7f6e\u7684 SSH \u4f1a\u8bdd\u6216\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u811a\u672c\u3002<\/li>\n<\/ul>\n<p><strong>2. \u7f13\u6162\u7684 shell<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>VSCode \u4f7f\u7528\u7684 shell\uff08\u4f8b\u5982 Bash\u3001Zsh\uff09\u914d\u7f6e\u4e0d\u5f53\u6216\u8fd0\u884c\u7f13\u6162\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u4f18\u5316 shell \u914d\u7f6e\uff0c\u4f8b\u5982\u4f7f\u7528\u66f4\u5feb\u7684 shell\uff08\u4f8b\u5982 Fish \u6216 Oh-my-zsh\uff09\u6216\u7981\u7528\u4e0d\u5fc5\u8981\u7684 shell \u63d2\u4ef6\u3002<\/li>\n<\/ul>\n<p><strong>3. \u6269\u5c55\u7a0b\u5e8f\u51b2\u7a81<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u67d0\u4e9b VSCode \u6269\u5c55\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u5f71\u54cd\u7ec8\u7aef\u6027\u80fd\uff0c\u5c24\u5176\u662f\u5728\u5176\u5305\u542b\u4e86\u81ea\u5b9a\u4e49\u5de5\u5177\u6216\u96c6\u6210\u7684\u547d\u4ee4\u884c\u5de5\u5177\u65f6\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u7981\u7528\u6216\u5378\u8f7d\u5f15\u8d77\u95ee\u9898\u7684\u6269\u5c55\u7a0b\u5e8f\u3002<\/li>\n<\/ul>\n<p><strong>4. \u8fdc\u7a0b SSH \u8fde\u63a5<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u65f6\uff0c\u7f51\u7edc\u5ef6\u8fdf\u548c\u5e26\u5bbd\u9650\u5236\u4f1a\u5bfc\u81f4\u7ec8\u7aef\u8fd0\u884c\u7f13\u6162\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u4f18\u5316 SSH \u8fde\u63a5\uff0c\u4f8b\u5982\u4f7f\u7528 SSH \u4ee3\u7406\u6216\u5728\u670d\u52a1\u5668\u4e0a\u5b89\u88c5 VSCode Remote Extension\u3002<\/li>\n<\/ul>\n<p><strong>5. \u7cfb\u7edf\u8d44\u6e90\u4e0d\u8db3<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u7cfb\u7edf\u5185\u5b58\u6216 CPU \u5229\u7528\u7387\u8fc7\u9ad8\uff0c\u5bfc\u81f4 VSCode \u65e0\u6cd5\u5206\u914d\u8db3\u591f\u7684\u8d44\u6e90\u7ed9\u7ec8\u7aef\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u589e\u52a0\u7cfb\u7edf\u5185\u5b58\u6216\u5347\u7ea7 CPU\u3002<\/li>\n<\/ul>\n<p><strong>6. \u7ec8\u7aef\u8bbe\u7f6e\u9519\u8bef<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u7ec8\u7aef\u4e2d\u67d0\u4e9b\u8bbe\u7f6e\uff0c\u4f8b\u5982\u884c\u7f13\u51b2\u533a\u5927\u5c0f\u6216\u6587\u672c\u7f16\u7801\uff0c\u53ef\u80fd\u4e0d\u9002\u5408\u4f60\u7684\u60c5\u51b5\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u5728 VSCode \u7684\u201c\u8bbe\u7f6e\u201d\u4e2d\u8c03\u6574\u7ec8\u7aef\u8bbe\u7f6e\uff0c\u4ee5\u63d0\u9ad8\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p><strong>7. \u78c1\u76d8 I\/O \u74f6\u9888<\/strong><\/p>\n<ul>\n<li> <strong>\u539f\u56e0\uff1a<\/strong>\u78c1\u76d8 I\/O \u7f13\u6162\u4f1a\u5f71\u54cd\u7ec8\u7aef\u8bfb\u53d6\u548c\u5199\u5165\u6587\u4ef6\u7684\u901f\u5ea6\u3002<\/li>\n<li> <strong>\u89e3\u51b3\u65b9\u6cd5\uff1a<\/strong>\u4f7f\u7528 SSD \u6216\u4f18\u5316\u6587\u4ef6\u7cfb\u7edf\u4ee5\u63d0\u9ad8\u78c1\u76d8\u6027\u80fd\u3002<\/li>\n<\/ul>\n<p>\u901a\u8fc7\u9075\u5faa\u8fd9\u4e9b\u6b65\u9aa4\uff0c\u4f60\u53ef\u4ee5\u8bca\u65ad\u548c\u89e3\u51b3 VSCode \u7ec8\u7aef\u8fd0\u884c\u7f13\u6162\u7684\u95ee\u9898\uff0c\u4ece\u800c\u63d0\u5347\u4f60\u7684\u5f00\u53d1\u6548\u7387\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u7ec8\u7aef\u8fd0\u884c\u5f88\u6162\u600e\u4e48\u529e\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>vscode \u7ec8\u7aef\u8fd0\u884c\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898\u5e38\u89c1\u539f\u56e0\u53ca\u5176\u89e3\u51b3\u65b9\u6cd5\uff1a\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u8fdb\u7a0b\uff0c\u4f18\u5316 shell \u914d\u7f6e\u3002\u7981\u7528\u6216\u5378\u8f7d\u5f15\u8d77\u95ee\u9898\u7684\u6269\u5c55\u7a0b\u5e8f\u3002\u4f18\u5316 ssh \u8fde\u63a5\uff0c\u4f7f\u7528 ssh \u4ee3\u7406\u6216\u5b89\u88c5 vscode remote extension\u3002\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u5e94\u7528\u7a0b\u5e8f\uff0c\u589e\u52a0\u7cfb\u7edf\u5185\u5b58\u6216\u5347\u7ea7 cpu\u3002\u8c03\u6574\u7ec8\u7aef\u8bbe\u7f6e\uff0c\u5982\u884c\u7f13\u51b2\u533a\u5927\u5c0f\u6216\u6587\u672c\u7f16\u7801\u3002\u4f7f\u7528 ssd \u6216\u4f18\u5316\u6587\u4ef6\u7cfb\u7edf\u4ee5\u63d0\u9ad8\u78c1\u76d8\u6027\u80fd\u3002 \u5982\u4f55\u89e3\u51b3 VSCode \u7ec8\u7aef\u8fd0\u884c\u901f\u5ea6\u7f13\u6162\u7684\u95ee\u9898 VSCode \u7684\u7ec8\u7aef\u6709\u65f6\u53ef\u80fd\u4f1a\u8fd0\u884c\u7f13\u6162\uff0c\u5f71\u54cd\u5f00\u53d1\u4f53\u9a8c\u3002\u4ee5\u4e0b\u5217\u51fa\u4e86\u4e00\u4e9b\u5e38\u89c1\u539f\u56e0\u548c\u89e3\u51b3\u65b9\u6cd5\uff1a 1. \u8fc7\u591a\u7684\u6d3b\u52a8\u8fdb\u7a0b \u539f\u56e0\uff1a\u7ec8\u7aef\u4e2d\u8fd0\u884c\u4e86\u592a\u591a\u8fdb\u7a0b\u4f1a\u6d88\u8017\u7cfb\u7edf\u8d44\u6e90\uff0c\u4ece\u800c\u5bfc\u81f4\u901f\u5ea6\u53d8\u6162\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a\u5173\u95ed\u4e0d\u5fc5\u8981\u7684\u8fdb\u7a0b\uff0c\u4f8b\u5982\u95f2\u7f6e\u7684 SSH \u4f1a\u8bdd\u6216\u957f\u65f6\u95f4\u8fd0\u884c\u7684\u811a\u672c\u3002 2. \u7f13\u6162\u7684 shell \u539f\u56e0\uff1aVSCode \u4f7f\u7528\u7684 shell\uff08\u4f8b\u5982 Bash\u3001Zsh\uff09\u914d\u7f6e\u4e0d\u5f53\u6216\u8fd0\u884c\u7f13\u6162\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a\u4f18\u5316 shell \u914d\u7f6e\uff0c\u4f8b\u5982\u4f7f\u7528\u66f4\u5feb\u7684 shell\uff08\u4f8b\u5982 Fish \u6216 Oh-my-zsh\uff09\u6216\u7981\u7528\u4e0d\u5fc5\u8981\u7684 shell \u63d2\u4ef6\u3002 3. \u6269\u5c55\u7a0b\u5e8f\u51b2\u7a81 \u539f\u56e0\uff1a\u67d0\u4e9b VSCode \u6269\u5c55\u7a0b\u5e8f\u53ef\u80fd\u4f1a\u5f71\u54cd\u7ec8\u7aef\u6027\u80fd\uff0c\u5c24\u5176\u662f\u5728\u5176\u5305\u542b\u4e86\u81ea\u5b9a\u4e49\u5de5\u5177\u6216\u96c6\u6210\u7684\u547d\u4ee4\u884c\u5de5\u5177\u65f6\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a\u7981\u7528\u6216\u5378\u8f7d\u5f15\u8d77\u95ee\u9898\u7684\u6269\u5c55\u7a0b\u5e8f\u3002 4. \u8fdc\u7a0b SSH \u8fde\u63a5 \u539f\u56e0\uff1a\u901a\u8fc7 SSH \u8fde\u63a5\u5230\u8fdc\u7a0b\u670d\u52a1\u5668\u65f6\uff0c\u7f51\u7edc\u5ef6\u8fdf\u548c\u5e26\u5bbd\u9650\u5236\u4f1a\u5bfc\u81f4\u7ec8\u7aef\u8fd0\u884c\u7f13\u6162\u3002 \u89e3\u51b3\u65b9\u6cd5\uff1a\u4f18\u5316 [&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-21274","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21274","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=21274"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21274\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21274"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21274"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21274"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}