{"id":85459,"date":"2026-07-27T15:41:22","date_gmt":"2026-07-27T07:41:22","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/85459.html"},"modified":"2026-07-27T15:41:22","modified_gmt":"2026-07-27T07:41:22","slug":"windows-%e4%b8%8a%e4%bd%bf%e7%94%a8-vscode-%e8%bf%9c%e7%a8%8b%e8%bf%9e%e6%8e%a5-ubuntu-%e6%9c%8d%e5%8a%a1%e5%99%a8%ef%bc%8c%e5%9c%a8-ubuntu-%e4%b8%8a%e7%9b%b4%e6%8e%a5%e6%89%93%e5%bc%80%e4%bb%a3","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/85459.html","title":{"rendered":"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5"},"content":{"rendered":"<p>\u4e0b\u9762\u662f\u4e00\u4efd\u9762\u5411\u4f60\u8fd9\u4e2a\u573a\u666f\u7684\u5b8c\u6574\u6559\u7a0b&#xff1a;Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668&#xff0c;\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5\u3002\u8fd9\u91cc\u6211\u4eec\u53ea\u5173\u6ce8\u5f00\u53d1\u8c03\u8bd5\u94fe\u8def&#xff0c;Git \u5148\u4e0d\u7ba1\u3002<\/p>\n<p>\u76ee\u6807<\/p>\n<p>\u5b9e\u73b0\u4e0b\u9762\u8fd9\u4ef6\u4e8b&#xff1a;<\/p>\n<ul>\n<li>VSCode \u754c\u9762\u5728 Windows<\/li>\n<li>\u4ee3\u7801\u6587\u4ef6\u5728 Ubuntu<\/li>\n<li>\u7f16\u8bd1\u5728 Ubuntu<\/li>\n<li>\u7a0b\u5e8f\u8fd0\u884c\u5728 Ubuntu<\/li>\n<li>\u65ad\u70b9\u8c03\u8bd5\u4e5f\u5728 Ubuntu<\/li>\n<\/ul>\n<p>\u8fd9\u5176\u5b9e\u5c31\u662f VSCode \u7684\u8fdc\u7a0b\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u6700\u5e38\u7528\u7684\u662f Remote &#8211; SSH\u3002<\/p>\n<p>\u4e00\u3001\u4f60\u6700\u7ec8\u4f1a\u5f97\u5230\u4ec0\u4e48<\/p>\n<p>\u914d\u7f6e\u5b8c\u6210\u540e&#xff0c;\u4f60\u7684\u5de5\u4f5c\u65b9\u5f0f\u4f1a\u53d8\u6210&#xff1a;<\/p>\n<li>\u5728 Windows \u6253\u5f00 VSCode<\/li>\n<li>\u901a\u8fc7 SSH \u8fde\u5230 Ubuntu<\/li>\n<li>\u76f4\u63a5\u6253\u5f00 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55<\/li>\n<li>\u5728 VSCode \u7ec8\u7aef\u91cc\u6267\u884c Ubuntu \u7684\u7f16\u8bd1\u547d\u4ee4<\/li>\n<li>\u5728 VSCode \u91cc\u6253\u65ad\u70b9\u3001\u6309 F5&#xff0c;\u7a0b\u5e8f\u5728 Ubuntu \u4e0a\u542f\u52a8\u5e76\u88ab\u8c03\u8bd5<\/li>\n<p>\u8fd9\u6837\u6700\u7a33&#xff0c;\u56e0\u4e3a\u5f00\u53d1\u73af\u5883\u3001\u8fd0\u884c\u73af\u5883\u3001\u8c03\u8bd5\u73af\u5883\u5b8c\u5168\u4e00\u81f4\u3002<\/p>\n<p>\u4e8c\u3001\u524d\u7f6e\u6761\u4ef6<\/p>\n<p>\u5f00\u59cb\u524d\u5148\u786e\u8ba4\u8fd9\u4e9b\u6761\u4ef6&#xff1a;<\/p>\n<li>Windows \u5df2\u5b89\u88c5 VSCode<\/li>\n<li>Ubuntu \u670d\u52a1\u5668\u5df2\u7ecf\u80fd\u901a\u8fc7 SSH \u767b\u5f55<\/li>\n<li>\u4ee3\u7801\u5df2\u7ecf\u653e\u5728 Ubuntu \u7684\u67d0\u4e2a\u76ee\u5f55\u4e0b<\/li>\n<li>Ubuntu \u4e0a\u5df2\u7ecf\u88c5\u597d\u4e86\u4f60\u9879\u76ee\u9700\u8981\u7684\u7f16\u8bd1\u5668\u6216\u89e3\u91ca\u5668<\/li>\n<p>\u5148\u5728 Windows PowerShell \u6d4b\u4e00\u4e0b SSH \u662f\u5426\u6b63\u5e38&#xff1a;<\/p>\n<p>ssh your_user&#064;192<span class=\"token punctuation\">.<\/span>168<span class=\"token punctuation\">.<\/span>118<span class=\"token punctuation\">.<\/span>250<\/p>\n<p>\u5982\u679c\u80fd\u767b\u5f55 Ubuntu&#xff0c;\u8bf4\u660e\u7b2c\u4e00\u6b65\u6ca1\u95ee\u9898\u3002<\/p>\n<p>\u4e09\u3001\u5728 VSCode \u5b89\u88c5\u8fdc\u7a0b\u5f00\u53d1\u6269\u5c55<\/p>\n<p>\u6253\u5f00 VSCode \u6269\u5c55\u5546\u5e97&#xff0c;\u5b89\u88c5&#xff1a;<\/p>\n<ul>\n<li>Remote &#8211; SSH<\/li>\n<\/ul>\n<p>\u5b89\u88c5\u540e&#xff0c;VSCode \u5c31\u80fd\u628a\u201c\u7f16\u8f91\u5668\u754c\u9762\u201d\u653e\u5728 Windows&#xff0c;\u628a\u201c\u5de5\u4f5c\u76ee\u5f55\u3001\u7ec8\u7aef\u3001\u8c03\u8bd5\u5668\u201d\u653e\u5230 Ubuntu\u3002<\/p>\n<p>\u56db\u3001\u914d\u7f6e SSH \u8fde\u63a5<\/p>\n<p>\u5728 Windows \u4e0a\u7f16\u8f91 SSH \u914d\u7f6e\u6587\u4ef6&#xff1a;<\/p>\n<p>C:\\\\Users\\\\Administrator\\\\.ssh\\\\config<\/p>\n<p>\u5199\u5165\u7c7b\u4f3c\u5185\u5bb9&#xff1a;<\/p>\n<p>Host ubuntu-dev<br \/>\n    HostName 192.168.118.250<br \/>\n    User your_user<br \/>\n    Port 22<\/p>\n<p>\u5982\u679c\u4f60\u7528\u5bc6\u94a5\u767b\u5f55&#xff0c;\u53ef\u4ee5\u518d\u52a0&#xff1a;<\/p>\n<p>    IdentityFile C:\\\\Users\\\\Administrator\\\\.ssh\\\\id_rsa<\/p>\n<p>\u8bf4\u660e&#xff1a;<\/p>\n<ul>\n<li>Host \u662f\u4f60\u7ed9\u8fd9\u53f0 Ubuntu \u8d77\u7684\u540d\u5b57<\/li>\n<li>HostName \u662f Ubuntu \u7684 IP<\/li>\n<li>User \u662f Ubuntu \u7528\u6237\u540d<\/li>\n<\/ul>\n<p>\u914d\u597d\u4ee5\u540e&#xff0c;\u4ee5\u540e\u76f4\u63a5\u8fde ubuntu-dev \u5c31\u884c&#xff0c;\u4e0d\u7528\u6bcf\u6b21\u6572\u6574\u4e32\u5730\u5740\u3002<\/p>\n<p>\u4e94\u3001\u7528 VSCode \u8fde\u63a5 Ubuntu<\/p>\n<p>\u5728 VSCode \u4e2d\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u7b2c\u4e00\u6b21\u8fde\u63a5\u65f6\u786e\u8ba4 SSH \u6307\u7eb9<\/li>\n<li>\u8f93\u5165\u5bc6\u7801&#xff0c;\u6216\u8005\u4f7f\u7528\u5bc6\u94a5\u767b\u5f55<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba08ae15.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u8fde\u63a5\u6210\u529f\u540e&#xff0c;\u5de6\u4e0b\u89d2\u4f1a\u51fa\u73b0 SSH \u8fdc\u7a0b\u6807\u8bc6\u3002<\/p>\n<p>\u8fd9\u8bf4\u660e\u73b0\u5728 VSCode \u5df2\u7ecf\u8fdb\u5165\u201c\u8fdc\u7a0b\u5f00\u53d1\u6a21\u5f0f\u201d\u3002<\/p>\n<p>\u516d\u3001\u6253\u5f00 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55<\/p>\n<p>\u8fde\u63a5\u6210\u529f\u540e&#xff1a;<\/p>\n<li>\u70b9\u51fb File<\/li>\n<li>\u9009\u62e9 Open Folder<\/li>\n<li>\u9009\u62e9 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55<\/li>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba0a0959.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f8b\u5982&#xff1a;<\/p>\n<p>\/home\/your_user\/project<\/p>\n<p>\u6216\u8005&#xff1a;<\/p>\n<p>\/data\/project<\/p>\n<p>\u603b\u4e4b&#xff0c;\u8fd9\u91cc\u6253\u5f00\u7684\u5fc5\u987b\u662f Ubuntu \u7684 Linux \u8def\u5f84&#xff0c;\u4e0d\u662f Windows \u7684\u5171\u4eab\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n<p>\u6253\u5f00\u540e&#xff0c;\u8fd9\u4e2a\u5de5\u4f5c\u533a\u91cc\u7684&#xff1a;<\/p>\n<ul>\n<li>\u6587\u4ef6\u6d4f\u89c8<\/li>\n<li>\u7ec8\u7aef<\/li>\n<li>\u7f16\u8bd1<\/li>\n<li>\u8c03\u8bd5<\/li>\n<\/ul>\n<p>\u90fd\u4f1a\u53d1\u751f\u5728 Ubuntu \u4e0a\u3002<\/p>\n<p>\u4e03\u3001\u786e\u8ba4\u5f53\u524d\u73af\u5883\u786e\u5b9e\u662f Ubuntu<\/p>\n<p>\u6253\u5f00 VSCode \u7ec8\u7aef&#xff0c;\u6267\u884c&#xff1a;<\/p>\n<p><span class=\"token builtin class-name\">pwd<\/span><br \/>\n<span class=\"token function\">whoami<\/span><br \/>\n<span class=\"token function\">uname<\/span> <span class=\"token parameter variable\">-a<\/span><\/p>\n<p>\u5982\u679c\u8f93\u51fa\u7684\u662f Ubuntu \u8def\u5f84\u3001Ubuntu \u7528\u6237\u3001Linux \u5185\u6838\u4fe1\u606f&#xff0c;\u5c31\u8bf4\u660e\u73af\u5883\u5df2\u7ecf\u5207\u5bf9\u4e86\u3002<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba0b64f8.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u4f60\u8fd8\u53ef\u4ee5\u987a\u624b\u68c0\u67e5\u7f16\u8bd1\u5de5\u5177&#xff1a;<\/p>\n<p>gcc <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\ng&#043;&#043; <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\npython3 <span class=\"token parameter variable\">&#8211;version<\/span><br \/>\ngdb <span class=\"token parameter variable\">&#8211;version<\/span><\/p>\n<p>\u6309\u4f60\u7684\u9879\u76ee\u7c7b\u578b\u770b\u9700\u8981\u54ea\u4e9b\u3002<\/p>\n<p>\u516b\u3001\u5728 Ubuntu \u4e0a\u5b89\u88c5\u8c03\u8bd5\u6240\u9700\u5de5\u5177<\/p>\n<p>\u8fd9\u4e00\u6b65\u53d6\u51b3\u4e8e\u4f60\u7684\u9879\u76ee\u8bed\u8a00\u3002<\/p>\n<p>\u5982\u679c\u662f C\/C&#043;&#043;&#xff0c;\u901a\u5e38\u81f3\u5c11\u9700\u8981&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> build-essential gdb<\/p>\n<p>\u5982\u679c\u662f Python&#xff0c;\u901a\u5e38\u9700\u8981&#xff1a;<\/p>\n<p><span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> update<br \/>\n<span class=\"token function\">sudo<\/span> <span class=\"token function\">apt<\/span> <span class=\"token function\">install<\/span> python3 python3-pip<\/p>\n<p>\u5982\u679c\u662f Node.js&#xff0c;\u5c31\u9700\u8981 Ubuntu \u4e0a\u5df2\u5b89\u88c5 Node\u3002<\/p>\n<p>\u6838\u5fc3\u539f\u5219\u662f&#xff1a;\u7a0b\u5e8f\u600e\u4e48\u5728 Ubuntu \u4e0a\u8dd1&#xff0c;\u8c03\u8bd5\u73af\u5883\u5c31\u600e\u4e48\u5728 Ubuntu \u4e0a\u51c6\u5907\u3002<\/p>\n<p>\u4e5d\u3001\u7f16\u8bd1\u548c\u8c03\u8bd5\u7684\u57fa\u672c\u601d\u8def<\/p>\n<p>\u5728\u8fd9\u4e2a\u6a21\u5f0f\u4e0b&#xff1a;<\/p>\n<ul>\n<li>\u4ee3\u7801\u7f16\u8f91\u5728 VSCode<\/li>\n<li>\u7f16\u8bd1\u547d\u4ee4\u5728 Ubuntu \u7ec8\u7aef\u6267\u884c<\/li>\n<li>\u8c03\u8bd5\u5668\u4e5f\u5728 Ubuntu \u4e0a\u8fd0\u884c<\/li>\n<li>VSCode \u53ea\u662f\u628a\u65ad\u70b9\u548c\u8c03\u8bd5\u754c\u9762\u663e\u793a\u51fa\u6765<\/li>\n<\/ul>\n<p>\u901a\u5e38\u6211\u4eec\u4f1a\u5728\u9879\u76ee\u91cc\u914d\u7f6e .vscode\/launch.json&#xff0c;\u8ba9 F5 \u53ef\u4ee5\u76f4\u63a5\u542f\u52a8\u8c03\u8bd5\u3002<\/p>\n<p>\u5982\u679c\u8fd8\u60f3\u4e00\u952e\u7f16\u8bd1&#xff0c;\u53ef\u4ee5\u518d\u52a0 .vscode\/tasks.json\u3002<\/p>\n<hr \/>\n<h3>Python \u9879\u76ee\u793a\u4f8b<\/h3>\n<p>\u5982\u679c\u4f60\u7684\u9879\u76ee\u662f Python&#xff0c;\u6700\u7b80\u5355\u3002<\/p>\n<p>\u5728\u9879\u76ee\u76ee\u5f55\u4e0b\u521b\u5efa .vscode\/launch.json&#xff1a;<\/p>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n  <span class=\"token string-property property\">&#034;version&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;0.2.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n  <span class=\"token string-property property\">&#034;configurations&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n    <span class=\"token punctuation\">{<\/span><br \/>\n      <span class=\"token string-property property\">&#034;name&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Debug train_demo&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;debugpy&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;request&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;launch&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;program&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;${workspaceFolder}\/train_demo.py&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;cwd&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;${workspaceFolder}&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;console&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;integratedTerminal&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n      <span class=\"token string-property property\">&#034;justMyCode&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token boolean\">false<\/span><br \/>\n    <span class=\"token punctuation\">}<\/span><br \/>\n  <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u4f7f\u7528\u65b9\u6cd5&#xff1a;<\/p>\n<li>\n<p>Ctrl&#043;Shift&#043;P<\/p>\n<\/li>\n<li>\n<p>\u6267\u884c Python: Select Interpreter<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba0cfc4e.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>\u786e\u8ba4\u5f53\u524d\u89e3\u91ca\u5668\u4e5f\u662f \/home\/linux\/miniforge3\/envs\/pt2.6\/bin\/python<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba0ef022.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<\/li>\n<li>\n<p>1\u6253\u5f00\u67d0\u4e2a .py \u6587\u4ef6<\/p>\n<\/li>\n<li>\n<p>\u5728\u5de6\u4fa7\u884c\u53f7\u5904\u6253\u65ad\u70b9<\/p>\n<\/li>\n<li>\n<p>\u91cd\u65b0\u6309 F5&#xff0c;\u8fd9\u6837\u7a0b\u5e8f\u4f1a\u5728 Ubuntu \u4e0a\u542f\u52a8&#xff0c;\u5e76\u505c\u5728\u65ad\u70b9\u5904\u3002<\/p>\n<\/li>\n<p>\u5341\u3001\u65e5\u5e38\u5f00\u53d1\u600e\u4e48\u7528<\/p>\n<p>\u63a8\u8350\u4f60\u4e4b\u540e\u56fa\u5b9a\u8fd9\u6837\u64cd\u4f5c&#xff1a;<\/p>\n<li>\u7528 VSCode \u8fde Ubuntu<\/li>\n<li>\u6253\u5f00 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55<\/li>\n<li>\u5728\u8fdc\u7a0b\u7ec8\u7aef\u91cc\u6267\u884c\u7f16\u8bd1\u547d\u4ee4<\/li>\n<li>\u914d\u7f6e\u597d launch.json<\/li>\n<li>\u6253\u65ad\u70b9<\/li>\n<li>\u6309 F5 \u8fdb\u884c\u8c03\u8bd5<\/li>\n<p>\u6bd4\u5982&#xff1a;<\/p>\n<ul>\n<li>Python \u9879\u76ee&#xff1a;\u76f4\u63a5 F5<\/li>\n<li>C\/C&#043;&#043; \u9879\u76ee&#xff1a;\u5148 cmake &amp;&amp; make \u6216\u914d\u7f6e preLaunchTask<\/li>\n<li>Node \u9879\u76ee&#xff1a;\u76f4\u63a5 F5<\/li>\n<\/ul>\n<p>\u5341\u4e00\u3001\u6700\u77ed\u53ef\u7528\u6d41\u7a0b<\/p>\n<p>\u5982\u679c\u4f60\u53ea\u60f3\u8981\u6700\u7b80\u6b65\u9aa4&#xff0c;\u6309\u8fd9\u4e2a\u6765&#xff1a;<\/p>\n<li>Windows \u5b89\u88c5 VSCode<\/li>\n<li>\u5b89\u88c5 Remote &#8211; SSH<\/li>\n<li>PowerShell \u6d4b\u8bd5&#xff1a;<\/li>\n<p>ssh your_user&#064;192<span class=\"token punctuation\">.<\/span>168<span class=\"token punctuation\">.<\/span>118<span class=\"token punctuation\">.<\/span>250<\/p>\n<li>VSCode \u6267\u884c Remote-SSH: Connect to Host<\/li>\n<li>\u6253\u5f00 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55<\/li>\n<li>\u5728\u8fdc\u7a0b\u7ec8\u7aef\u786e\u8ba4&#xff1a;<\/li>\n<p><span class=\"token builtin class-name\">pwd<\/span><br \/>\n<span class=\"token function\">uname<\/span> <span class=\"token parameter variable\">-a<\/span><\/p>\n<li>\u5b89\u88c5\u5bf9\u5e94\u8bed\u8a00\u7684\u8fdc\u7a0b\u8c03\u8bd5\u6269\u5c55<\/li>\n<li>\u521b\u5efa .vscode\/launch.json<\/li>\n<li>\u6309 F5 \u8c03\u8bd5<\/li>\n<p>\u5341\u4e09\u3001\u7ed3\u8bba<\/p>\n<p>\u4f60\u7684\u8fd9\u4e2a\u76ee\u6807&#xff0c;\u6700\u6807\u51c6\u7684\u505a\u6cd5\u5c31\u662f&#xff1a;<\/p>\n<p>Windows \u4e0a\u5f00 VSCode&#xff0c;\u4f7f\u7528 Remote-SSH \u8fde Ubuntu&#xff0c;\u76f4\u63a5\u6253\u5f00 Ubuntu \u4e0a\u7684\u9879\u76ee\u76ee\u5f55&#xff0c;\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u3001\u8c03\u8bd5\u5168\u90e8\u7559\u5728 Ubuntu\u3002<\/p>\n<p>\u8fd9\u6837\u73af\u5883\u6700\u4e00\u81f4&#xff0c;\u4e5f\u6700\u4e0d\u5bb9\u6613\u51fa\u5947\u602a\u95ee\u9898\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u4e0b\u9762\u662f\u4e00\u4efd\u9762\u5411\u4f60\u8fd9\u4e2a\u573a\u666f\u7684\u5b8c\u6574\u6559\u7a0b&#xff1a;Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668&#xff0c;\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5\u3002\u8fd9\u91cc\u6211\u4eec\u53ea\u5173\u6ce8\u5f00\u53d1\u8c03\u8bd5\u94fe\u8def&#xff0c;Git \u5148\u4e0d\u7ba1\u3002<br \/>\n\u76ee\u6807<br \/>\n\u5b9e\u73b0\u4e0b\u9762\u8fd9\u4ef6\u4e8b&#xff1a;<br \/>\nVSCode \u754c\u9762\u5728 Windows\u4ee3\u7801\u6587\u4ef6\u5728 Ubuntu\u7f16\u8bd1\u5728 Ubuntu\u7a0b\u5e8f\u8fd0\u884c\u5728 Ubuntu\u65ad\u70b9\u8c03\u8bd5\u4e5f\u5728 Ubuntu<br \/>\n\u8fd9\u5176\u5b9e\u5c31\u662f VSCode \u7684\u8fdc\u7a0b\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u6700\u5e38\u7528\u7684<\/p>\n","protected":false},"author":2,"featured_media":85454,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[76,149,43],"topic":[],"class_list":["post-85459","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-vscode","tag-windows","tag-43"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.wsisp.com\/helps\/85459.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u4e0b\u9762\u662f\u4e00\u4efd\u9762\u5411\u4f60\u8fd9\u4e2a\u573a\u666f\u7684\u5b8c\u6574\u6559\u7a0b&#xff1a;Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668&#xff0c;\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5\u3002\u8fd9\u91cc\u6211\u4eec\u53ea\u5173\u6ce8\u5f00\u53d1\u8c03\u8bd5\u94fe\u8def&#xff0c;Git \u5148\u4e0d\u7ba1\u3002 \u76ee\u6807 \u5b9e\u73b0\u4e0b\u9762\u8fd9\u4ef6\u4e8b&#xff1a; VSCode \u754c\u9762\u5728 Windows\u4ee3\u7801\u6587\u4ef6\u5728 Ubuntu\u7f16\u8bd1\u5728 Ubuntu\u7a0b\u5e8f\u8fd0\u884c\u5728 Ubuntu\u65ad\u70b9\u8c03\u8bd5\u4e5f\u5728 Ubuntu \u8fd9\u5176\u5b9e\u5c31\u662f VSCode \u7684\u8fdc\u7a0b\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u6700\u5e38\u7528\u7684\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/85459.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-07-27T07:41:22+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba08ae15.png\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"\u4f5c\u8005\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85459.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/85459.html\",\"name\":\"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-07-27T07:41:22+00:00\",\"dateModified\":\"2026-07-27T07:41:22+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/85459.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/85459.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/85459.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\",\"url\":\"https:\/\/www.wsisp.com\/helps\/\",\"name\":\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"description\":\"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"zh-Hans\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"zh-Hans\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"contentUrl\":\"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery\",\"caption\":\"admin\"},\"sameAs\":[\"http:\/\/wp.wsisp.com\"],\"url\":\"https:\/\/www.wsisp.com\/helps\/author\/admin\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.wsisp.com\/helps\/85459.html","og_locale":"zh_CN","og_type":"article","og_title":"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u4e0b\u9762\u662f\u4e00\u4efd\u9762\u5411\u4f60\u8fd9\u4e2a\u573a\u666f\u7684\u5b8c\u6574\u6559\u7a0b&#xff1a;Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668&#xff0c;\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5\u3002\u8fd9\u91cc\u6211\u4eec\u53ea\u5173\u6ce8\u5f00\u53d1\u8c03\u8bd5\u94fe\u8def&#xff0c;Git \u5148\u4e0d\u7ba1\u3002 \u76ee\u6807 \u5b9e\u73b0\u4e0b\u9762\u8fd9\u4ef6\u4e8b&#xff1a; VSCode \u754c\u9762\u5728 Windows\u4ee3\u7801\u6587\u4ef6\u5728 Ubuntu\u7f16\u8bd1\u5728 Ubuntu\u7a0b\u5e8f\u8fd0\u884c\u5728 Ubuntu\u65ad\u70b9\u8c03\u8bd5\u4e5f\u5728 Ubuntu \u8fd9\u5176\u5b9e\u5c31\u662f VSCode \u7684\u8fdc\u7a0b\u5f00\u53d1\u6a21\u5f0f&#xff0c;\u6700\u5e38\u7528\u7684","og_url":"https:\/\/www.wsisp.com\/helps\/85459.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-07-27T07:41:22+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/07\/20260727074120-6a670ba08ae15.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"2 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/85459.html","url":"https:\/\/www.wsisp.com\/helps\/85459.html","name":"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-07-27T07:41:22+00:00","dateModified":"2026-07-27T07:41:22+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/85459.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/85459.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/85459.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"Windows \u4e0a\u4f7f\u7528 VSCode \u8fdc\u7a0b\u8fde\u63a5 Ubuntu \u670d\u52a1\u5668\uff0c\u5728 Ubuntu \u4e0a\u76f4\u63a5\u6253\u5f00\u4ee3\u7801\u3001\u7f16\u8bd1\u3001\u8fd0\u884c\u548c\u8c03\u8bd5"}]},{"@type":"WebSite","@id":"https:\/\/www.wsisp.com\/helps\/#website","url":"https:\/\/www.wsisp.com\/helps\/","name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","description":"\u9999\u6e2f\u670d\u52a1\u5668_\u9999\u6e2f\u4e91\u670d\u52a1\u5668\u8d44\u8baf_\u670d\u52a1\u5668\u5e2e\u52a9\u6587\u6863_\u670d\u52a1\u5668\u6559\u7a0b","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.wsisp.com\/helps\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"zh-Hans"},{"@type":"Person","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41","name":"admin","image":{"@type":"ImageObject","inLanguage":"zh-Hans","@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/image\/","url":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","contentUrl":"https:\/\/gravatar.wp-china-yes.net\/avatar\/?s=96&d=mystery","caption":"admin"},"sameAs":["http:\/\/wp.wsisp.com"],"url":"https:\/\/www.wsisp.com\/helps\/author\/admin"}]}},"_links":{"self":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85459","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/comments?post=85459"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/85459\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/85454"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=85459"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=85459"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=85459"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=85459"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}