{"id":258891,"date":"2024-05-15T12:51:16","date_gmt":"2024-05-15T04:51:16","guid":{"rendered":"https:\/\/docs.pingcode.com\/ask\/ask-ask\/258891.html"},"modified":"2024-05-15T12:51:26","modified_gmt":"2024-05-15T04:51:26","slug":"wsl%e4%b8%8b%e5%9c%a8vs-code%e7%bc%96%e5%86%99c-%e5%a6%82%e4%bd%95%e8%bf%9b%e8%a1%8c%e4%bb%a3%e7%a0%81%e8%b0%83%e8%af%95","status":"publish","type":"post","link":"https:\/\/docs.pingcode.com\/ask\/258891.html","title":{"rendered":"WSL\u4e0b\u5728VS Code\u7f16\u5199C  \u5982\u4f55\u8fdb\u884c\u4ee3\u7801\u8c03\u8bd5"},"content":{"rendered":"<p style=\"text-align:center\"><img decoding=\"async\" src=\"https:\/\/cdn-kb.worktile.com\/kb\/wp-content\/uploads\/2024\/04\/27105939\/2cba4725-1399-4b49-a444-c0af1176436f.webp\" alt=\"WSL\u4e0b\u5728VS Code\u7f16\u5199C  \u5982\u4f55\u8fdb\u884c\u4ee3\u7801\u8c03\u8bd5\" \/><\/p>\n<p><p>\u5728WSL(Windows Subsystem for Linux)\u4e0b\u4f7f\u7528VS Code\u7f16\u5199C\u8bed\u8a00\u4ee3\u7801\u5e76\u8fdb\u884c\u8c03\u8bd5\u53ef\u4ee5\u901a\u8fc7\u51e0\u4e2a\u7b80\u5355\u7684\u6b65\u9aa4\u5b8c\u6210\uff0c\u8fd9\u4e9b\u6b65\u9aa4\u5305\u62ec<strong>\u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6\u3001\u914d\u7f6eVS Code\u3001\u7406\u89e3\u8c03\u8bd5\u6d41\u7a0b<\/strong>\u548c<strong>\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/strong>\u3002<strong>\u5176\u4e2d\uff0c\u7406\u89e3\u8c03\u8bd5\u6d41\u7a0b<\/strong>\u662f\u8fdb\u884c\u9ad8\u6548\u8c03\u8bd5\u7684\u5173\u952e\uff0c\u56e0\u4e3a\u5b83\u4e0d\u4ec5\u6d89\u53ca\u5230\u4ee3\u7801\u7684\u9010\u884c\u6267\u884c\uff0c\u8fd8\u5305\u542b\u4e86\u53d8\u91cf\u7684\u76d1\u63a7\u3001\u65ad\u70b9\u7684\u8bbe\u7f6e\u3001\u4ee5\u53ca\u8c03\u7528\u5806\u6808\u7684\u68c0\u67e5\u7b49\u590d\u6742\u8fc7\u7a0b\uff0c\u8ba9\u5f00\u53d1\u8005\u80fd\u591f\u6df1\u5165\u4e86\u89e3\u7a0b\u5e8f\u7684\u8fd0\u884c\u673a\u5236\uff0c\u53ca\u65f6\u53d1\u73b0\u548c\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<\/p>\n<\/p>\n<p><h2>\u4e00\u3001\u5b89\u88c5\u5fc5\u8981\u7684\u8f6f\u4ef6<\/h2>\n<\/p>\n<p><p>\u5728WSL\u73af\u5883\u4e0b\u5f00\u53d1C\u8bed\u8a00\uff0c\u9996\u5148\u9700\u8981\u786e\u4fdd\u4f60\u7684\u7cfb\u7edf\u4e2d\u5df2\u5b89\u88c5\u6709\u76f8\u5173\u7684\u7f16\u7a0b\u5de5\u5177\u548c\u73af\u5883\u3002\u8fd9\u4e9b\u5de5\u5177\u5305\u62ec\u4f46\u4e0d\u9650\u4e8eC\u8bed\u8a00\u7684\u7f16\u8bd1\u5668\u5982GCC\u3001GDB\u8c03\u8bd5\u5668\u4ee5\u53caVS Code\u7f16\u8f91\u5668\u672c\u8eab\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5GCC\u7f16\u8bd1\u5668<\/strong>\uff1aGCC\u662f\u6700\u6d41\u884c\u7684C\u8bed\u8a00\u7f16\u8bd1\u5668\u4e4b\u4e00\uff0c\u5728Linux\u73af\u5883\u4e0b\u975e\u5e38\u5e38\u89c1\u3002\u5728WSL\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5982\u4e0b\u547d\u4ee4\u5b89\u88c5GCC\uff1a<code>sudo apt-get install build-essential<\/code>\u3002\u8fd9\u4e2a\u547d\u4ee4\u4e0d\u4ec5\u4f1a\u5b89\u88c5GCC\uff0c\u8fd8\u4f1a\u5b89\u88c5make\u7b49\u5de5\u5177\uff0c\u8fd9\u4e9b\u90fd\u662f\u7f16\u8bd1\u548c\u6784\u5efaC\u8bed\u8a00\u9879\u76ee\u6240\u9700\u8981\u7684\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5b89\u88c5GDB\u8c03\u8bd5\u5668<\/strong>\uff1a\u8981\u5728VS Code\u4e2d\u8fdb\u884cC\u8bed\u8a00\u7a0b\u5e8f\u7684\u8c03\u8bd5\uff0c\u9700\u8981\u7528\u5230GDB\u8fd9\u4e2a\u8c03\u8bd5\u5668\u3002\u5b89\u88c5\u547d\u4ee4\u4e3a\uff1a<code>sudo apt-get install gdb<\/code>\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>\u4e8c\u3001\u914d\u7f6eVS Code<\/h2>\n<\/p>\n<p><p>\u4e3a\u4e86\u5728VS Code\u4e2d\u987a\u5229\u7f16\u5199\u548c\u8c03\u8bd5C\u8bed\u8a00\u7a0b\u5e8f\uff0c\u9700\u8981\u8fdb\u884c\u4e00\u4e9b\u914d\u7f6e\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u5b89\u88c5C\/C++\u6269\u5c55<\/strong>\uff1a\u9996\u5148\u5728VS Code\u4e2d\u5b89\u88c5Microsoft\u7684C\/C++\u6269\u5c55\u3002\u8fd9\u4e2a\u6269\u5c55\u63d0\u4f9b\u4e86\u4ee3\u7801\u9ad8\u4eae\u3001\u4ee3\u7801\u81ea\u52a8\u5b8c\u6210\u3001\u8c03\u8bd5\u652f\u6301\u7b49\u529f\u80fd\uff0c\u662f\u8fdb\u884cC\/C++\u5f00\u53d1\u4e0d\u53ef\u7f3a\u5c11\u7684\u5de5\u5177\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u914d\u7f6elaunch.json<\/strong>\uff1aVS Code\u4f7f\u7528launch.json\u6587\u4ef6\u6765\u914d\u7f6e\u8c03\u8bd5\u73af\u5883\u3002\u4f60\u9700\u8981\u5728\u9879\u76ee\u7684<code>.vscode<\/code>\u6587\u4ef6\u5939\u4e0b\u521b\u5efa\u6216\u4fee\u6539\u8fd9\u4e2a\u6587\u4ef6\uff0c\u8bbe\u7f6e\u6b63\u786e\u7684\u7a0b\u5e8f\u6267\u884c\u8def\u5f84\u3001\u8c03\u8bd5\u5668\u8def\u5f84\u7b49\u4fe1\u606f\u3002\u4f8b\u5982\uff0c\u4e00\u4e2a\u57fa\u672c\u7684C\u8bed\u8a00\u8c03\u8bd5\u914d\u7f6e\u53ef\u80fd\u5982\u4e0b\u6240\u793a\uff1a<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><pre><code class=\"language-json\">{<\/p>\n<p>    &quot;version&quot;: &quot;0.2.0&quot;,<\/p>\n<p>    &quot;configurations&quot;: [<\/p>\n<p>        {<\/p>\n<p>            &quot;name&quot;: &quot;C Debug&quot;,<\/p>\n<p>            &quot;type&quot;: &quot;cppdbg&quot;,<\/p>\n<p>            &quot;request&quot;: &quot;launch&quot;,<\/p>\n<p>            &quot;program&quot;: &quot;${workspaceFolder}\/a.out&quot;,<\/p>\n<p>            &quot;args&quot;: [],<\/p>\n<p>            &quot;stopAtEntry&quot;: false,<\/p>\n<p>            &quot;cwd&quot;: &quot;${workspaceFolder}&quot;,<\/p>\n<p>            &quot;environment&quot;: [],<\/p>\n<p>            &quot;externalConsole&quot;: true,<\/p>\n<p>            &quot;MIMode&quot;: &quot;gdb&quot;,<\/p>\n<p>            &quot;setupCommands&quot;: [<\/p>\n<p>                {<\/p>\n<p>                    &quot;description&quot;: &quot;Enable pretty-printing for gdb&quot;,<\/p>\n<p>                    &quot;text&quot;: &quot;-enable-pretty-printing&quot;,<\/p>\n<p>                    &quot;ignoreF<a href=\"https:\/\/docs.pingcode.com\/blog\/59162.html\" target=\"_blank\">AI<\/a>lures&quot;: true<\/p>\n<p>                }<\/p>\n<p>            ],<\/p>\n<p>            &quot;miDebuggerPath&quot;: &quot;\/usr\/bin\/gdb&quot;<\/p>\n<p>        }<\/p>\n<p>    ]<\/p>\n<p>}<\/p>\n<p><\/code><\/pre>\n<\/p>\n<p><p>\u8fd9\u4e2a\u914d\u7f6e\u6307\u5b9a\u4e86\u7a0b\u5e8f\u7684\u540d\u79f0\u3001\u8c03\u8bd5\u5668\u8def\u5f84\u548c\u4e00\u4e9b\u8c03\u8bd5\u65f6\u7684\u884c\u4e3a\u3002<\/p>\n<\/p>\n<p><h2>\u4e09\u3001\u7406\u89e3\u8c03\u8bd5\u6d41\u7a0b<\/h2>\n<\/p>\n<p><p>\u8c03\u8bd5\u662f\u7f16\u7a0b\u8fc7\u7a0b\u4e2d\u7684\u4e00\u4e2a\u91cd\u8981\u73af\u8282\uff0c\u5176\u76ee\u7684\u662f\u5e2e\u52a9\u5f00\u53d1\u8005\u627e\u5230\u5e76\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\u3002<strong>\u5728VS Code\u4e2d\uff0c\u5229\u7528GDB\u8c03\u8bd5\u5668\u8fdb\u884cC\u8bed\u8a00\u4ee3\u7801\u7684\u8c03\u8bd5<\/strong>\uff0c\u5305\u62ec\u8bbe\u7f6e\u65ad\u70b9\u3001\u5355\u6b65\u6267\u884c\u4ee3\u7801\u3001\u67e5\u770b\u53d8\u91cf\u503c\u3001\u63a2\u7a76\u8c03\u7528\u5806\u6808\u7b49\u5173\u952e\u6b65\u9aa4\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u8bbe\u7f6e\u65ad\u70b9<\/strong>\uff1a\u5728VS Code\u4e2d\uff0c\u4f60\u53ef\u4ee5\u901a\u8fc7\u5355\u51fb\u4ee3\u7801\u5de6\u8fb9\u680f\u7684\u7a7a\u767d\u533a\u57df\u6765\u8bbe\u7f6e\u65ad\u70b9\u3002\u65ad\u70b9\u5141\u8bb8\u4f60\u6682\u505c\u4ee3\u7801\u7684\u6267\u884c\uff0c\u5728\u7279\u5b9a\u7684\u4ee3\u7801\u884c\u4e0a\u505c\u4e0b\u6765\uff0c\u8fd9\u6837\u4f60\u5c31\u53ef\u4ee5\u68c0\u67e5\u6b64\u65f6\u7a0b\u5e8f\u7684\u72b6\u6001\u4e86\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5355\u6b65\u6267\u884c<\/strong>\uff1a\u901a\u8fc7\u5355\u6b65\u6267\u884c\u529f\u80fd\uff0c\u4f60\u53ef\u4ee5\u4e00\u884c\u4e00\u884c\u5730\u6267\u884c\u4f60\u7684\u7a0b\u5e8f\uff0c\u4ed4\u7ec6\u89c2\u5bdf\u6bcf\u4e00\u4e2a\u64cd\u4f5c\u5bf9\u7a0b\u5e8f\u72b6\u6001\u7684\u5f71\u54cd\u3002\u8fd9\u5bf9\u4e8e\u7406\u89e3\u7a0b\u5e8f\u7684\u903b\u8f91\u6d41\u7a0b\u548c\u53d1\u73b0\u6f5c\u5728\u7684\u903b\u8f91\u9519\u8bef\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><h2>\u56db\u3001\u4f7f\u7528\u8c03\u8bd5\u5de5\u5177<\/h2>\n<\/p>\n<p><p>\u5728VS Code\u4e2d\uff0c\u8c03\u8bd5\u5de5\u5177\u680f\u63d0\u4f9b\u4e86\u4e30\u5bcc\u7684\u8c03\u8bd5\u64cd\u4f5c\uff0c\u6bd4\u5982\u542f\u52a8\/\u505c\u6b62\u8c03\u8bd5\u3001\u91cd\u542f\u8c03\u8bd5\u3001\u5355\u6b65\u6267\u884c\uff08\u5305\u62ec\u5355\u6b65\u8fdb\u5165\u3001\u5355\u6b65\u8d8a\u8fc7\u3001\u5355\u6b65\u8fd4\u56de\uff09\u7b49\u3002\u901a\u8fc7\u8fd9\u4e9b\u5de5\u5177\uff0c\u4f60\u53ef\u4ee5\u7075\u6d3b\u5730\u63a7\u5236\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\uff0c\u9ad8\u6548\u5730\u8fdb\u884c\u95ee\u9898\u8bca\u65ad\u3002<\/p>\n<\/p>\n<ol>\n<li>\n<p><strong>\u67e5\u770b\u53d8\u91cf<\/strong>\uff1a\u5728\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u80fd\u591f\u89c2\u5bdf\u53d8\u91cf\u7684\u5f53\u524d\u503c\u662f\u975e\u5e38\u91cd\u8981\u7684\u3002VS Code\u7684\u8c03\u8bd5\u9762\u677f\u63d0\u4f9b\u4e86\u4fbf\u6377\u7684\u65b9\u5f0f\u6765\u67e5\u770b\u548c\u76d1\u63a7\u53d8\u91cf\u7684\u503c\uff0c\u8fd9\u5bf9\u4e8e\u7406\u89e3\u7a0b\u5e8f\u7684\u72b6\u6001\u548c\u53d1\u73b0\u95ee\u9898\u975e\u5e38\u6709\u5e2e\u52a9\u3002<\/p>\n<\/p>\n<\/li>\n<li>\n<p><strong>\u5229\u7528\u8c03\u7528\u5806\u6808<\/strong>\uff1a\u8c03\u7528\u5806\u6808\u663e\u793a\u4e86\u51fd\u6570\u8c03\u7528\u7684\u5c42\u6b21\u7ed3\u6784\uff0c\u5e2e\u52a9\u4f60\u7406\u89e3\u7a0b\u5e8f\u7684\u6267\u884c\u6d41\u7a0b\u3002\u901a\u8fc7\u68c0\u67e5\u8c03\u7528\u5806\u6808\uff0c\u4f60\u53ef\u4ee5\u8f7b\u677e\u5730\u627e\u5230\u7a0b\u5e8f\u6267\u884c\u7684\u5f53\u524d\u4f4d\u7f6e\uff0c\u4ee5\u53ca\u662f\u54ea\u4e00\u6b21\u51fd\u6570\u8c03\u7528\u5bfc\u81f4\u4e86\u9519\u8bef\u3002<\/p>\n<\/p>\n<\/li>\n<\/ol>\n<p><p>\u603b\u4e4b\uff0c\u901a\u8fc7\u4ee5\u4e0a\u6b65\u9aa4\uff0c\u5728WSL\u4e0b\u4f7f\u7528VS Code\u7f16\u5199\u548c\u8c03\u8bd5C\u8bed\u8a00\u4ee3\u7801\u4e0d\u4ec5\u662f\u53ef\u80fd\u7684\uff0c\u800c\u4e14\u8fd8\u53ef\u4ee5\u8fbe\u5230\u975e\u5e38\u9ad8\u6548\u548c\u4e13\u4e1a\u7684\u6c34\u5e73\u3002\u53ea\u9700\u5b89\u88c5\u548c\u914d\u7f6e\u597d\u5fc5\u8981\u7684\u5de5\u5177\uff0c\u5e76\u719f\u6089\u8c03\u8bd5\u6d41\u7a0b\u548c\u8c03\u8bd5\u5de5\u5177\u7684\u4f7f\u7528\uff0c\u4f60\u5c31\u80fd\u591f\u8f7b\u677e\u5730\u53d1\u73b0\u5e76\u4fee\u590d\u4ee3\u7801\u4e2d\u7684\u9519\u8bef\uff0c\u63d0\u9ad8\u4f60\u7684\u7f16\u7a0b\u6548\u7387\u3002<\/p>\n<\/p>\n<h2><strong>\u76f8\u5173\u95ee\u7b54FAQs\uff1a<\/strong><\/h2>\n<p><strong>1. \u5982\u4f55\u5728VS Code\u4e2d\u8bbe\u7f6eWSL\u73af\u5883\u8fdb\u884cC\u4ee3\u7801\u8c03\u8bd5\uff1f<\/strong><br \/>\n\u5982\u679c\u8981\u5728WSL\u4e0b\u4f7f\u7528VS Code\u8fdb\u884cC\u4ee3\u7801\u8c03\u8bd5\uff0c\u60a8\u9700\u8981\u5148\u5b89\u88c5\u76f8\u5e94\u7684\u8c03\u8bd5\u5668\u5e76\u914d\u7f6eVS Code\u7684\u8c03\u8bd5\u73af\u5883\u3002\u9996\u5148\uff0c\u5728VS Code\u4e2d\u5b89\u88c5C\/C++\u63d2\u4ef6\uff0c\u70b9\u51fb\u6269\u5c55\u56fe\u6807\u8fdb\u5165\u63d2\u4ef6\u5546\u5e97\uff0c\u5e76\u641c\u7d22C\/C++\u63d2\u4ef6\u8fdb\u884c\u5b89\u88c5\u3002\u5b89\u88c5\u5b8c\u6210\u540e\uff0c\u6309\u4e0bF1\u952e\u6253\u5f00\u547d\u4ee4\u9762\u677f\uff0c\u8f93\u5165\u201cC\/C++: Edit Configurations\u201d\u8fdb\u884c\u914d\u7f6e\u3002\u9009\u62e9WSL\u4f5c\u4e3a\u8c03\u8bd5\u76ee\u6807\uff0cVS Code\u4f1a\u81ea\u52a8\u68c0\u6d4bWSL\u73af\u5883\u5e76\u751f\u6210\u8c03\u8bd5\u914d\u7f6e\u6587\u4ef6launch.json\u3002\u5728launch.json\u6587\u4ef6\u4e2d\uff0c\u60a8\u53ef\u4ee5\u8bbe\u7f6e\u65ad\u70b9\u3001\u6dfb\u52a0\u81ea\u5b9a\u4e49\u542f\u52a8\u547d\u4ee4\u7b49\u3002\u6700\u540e\uff0c\u70b9\u51fb\u8c03\u8bd5\u89c6\u56fe\u4e2d\u7684\u7eff\u8272\u64ad\u653e\u6309\u94ae\uff0c\u5f00\u59cbC\u4ee3\u7801\u7684\u8c03\u8bd5\u8fc7\u7a0b\u3002<\/p>\n<p><strong>2. \u5982\u4f55\u5728VS Code\u4e2d\u4f7f\u7528\u65ad\u70b9\u8fdb\u884cC\u4ee3\u7801\u8c03\u8bd5\uff1f<\/strong><br \/>\n\u5728VS Code\u4e2d\u901a\u8fc7\u4f7f\u7528\u65ad\u70b9\u6765\u8fdb\u884cC\u4ee3\u7801\u8c03\u8bd5\u975e\u5e38\u65b9\u4fbf\u3002\u9996\u5148\uff0c\u627e\u5230\u60a8\u5e0c\u671b\u5728\u4ee3\u7801\u4e2d\u8bbe\u7f6e\u65ad\u70b9\u7684\u5730\u65b9\uff0c\u5e76\u5728\u884c\u53f7\u5de6\u4fa7\u70b9\u51fb\u9f20\u6807\u5de6\u952e\u6216\u6309\u4e0bF9\u952e\uff0c\u5728\u8be5\u884c\u53f7\u5904\u63d2\u5165\u4e00\u4e2a\u7ea2\u8272\u5706\u70b9\u3002\u63a5\u4e0b\u6765\uff0c\u6309\u4e0bF5\u952e\u5f00\u59cb\u8c03\u8bd5\uff0c\u4ee3\u7801\u5c06\u5728\u8fbe\u5230\u65ad\u70b9\u5904\u65f6\u6682\u505c\u6267\u884c\uff0c\u60a8\u53ef\u4ee5\u901a\u8fc7\u8c03\u8bd5\u89c6\u56fe\u4e2d\u7684\u5de5\u5177\u680f\u8fdb\u884c\u5355\u6b65\u6267\u884c\u3001\u89c2\u5bdf\u53d8\u91cf\u503c\u3001\u67e5\u770b\u5806\u6808\u4fe1\u606f\u7b49\u64cd\u4f5c\u3002\u5f53\u60a8\u5b8c\u6210\u8c03\u8bd5\u540e\uff0c\u53ef\u4ee5\u6309\u4e0bShift+F5\u952e\u505c\u6b62\u8c03\u8bd5\u3002<\/p>\n<p><strong>3. \u5982\u4f55\u5728VS Code\u4e2d\u67e5\u770bC\u4ee3\u7801\u7684\u5b9e\u65f6\u53d8\u91cf\u503c\uff1f<\/strong><br \/>\n\u5728C\u4ee3\u7801\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u5b9e\u65f6\u67e5\u770b\u53d8\u91cf\u7684\u503c\u4ee5\u4fbf\u8fdb\u884c\u8c03\u8bd5\u3002\u5728VS Code\u4e2d\uff0c\u60a8\u53ef\u4ee5\u4f7f\u7528\u201c\u89c2\u5bdf\u201d\u89c6\u56fe\u6765\u67e5\u770b\u53d8\u91cf\u7684\u5b9e\u65f6\u503c\u3002\u5728\u8c03\u8bd5\u8fc7\u7a0b\u4e2d\uff0c\u6253\u5f00\u201c\u89c2\u5bdf\u201d\u89c6\u56fe\uff0c\u60a8\u5c06\u770b\u5230\u5f53\u524d\u4ee3\u7801\u4e2d\u6240\u6709\u53ef\u7528\u7684\u53d8\u91cf\uff0c\u5e76\u4e14\u53ef\u4ee5\u5728\u5176\u4e2d\u6dfb\u52a0\u60a8\u611f\u5174\u8da3\u7684\u53d8\u91cf\u3002\u6bcf\u5f53\u7a0b\u5e8f\u6267\u884c\u5230\u4e00\u4e2a\u65ad\u70b9\u65f6\uff0c\u89c2\u5bdf\u89c6\u56fe\u5c06\u663e\u793a\u6240\u6709\u88ab\u89c2\u5bdf\u53d8\u91cf\u7684\u5b9e\u65f6\u503c\u3002\u60a8\u751a\u81f3\u53ef\u4ee5\u53f3\u952e\u5355\u51fb\u67d0\u4e2a\u53d8\u91cf\uff0c\u9009\u62e9\u201c\u6dfb\u52a0\u5230\u89c2\u5bdf\u201d\u4ee5\u6dfb\u52a0\u65b0\u7684\u53d8\u91cf\u89c2\u5bdf\u70b9\u3002\u901a\u8fc7\u89c2\u5bdf\u89c6\u56fe\uff0c\u60a8\u53ef\u4ee5\u66f4\u65b9\u4fbf\u5730\u8ddf\u8e2a\u548c\u8c03\u8bd5C\u4ee3\u7801\u4e2d\u7684\u53d8\u91cf\u3002<\/p>\n","protected":false},"excerpt":{"rendered":"\u5728WSL(Windows Subsystem for Linux)\u4e0b\u4f7f\u7528VS Code\u7f16\u5199C\u8bed\u8a00\u4ee3\u7801\u5e76\u8fdb\u884c\u8c03\u8bd5 [&hellip;]","protected":false},"author":3,"featured_media":258899,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[37],"tags":[],"acf":[],"_links":{"self":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/258891"}],"collection":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/users\/3"}],"replies":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/comments?post=258891"}],"version-history":[{"count":0,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/posts\/258891\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media\/258899"}],"wp:attachment":[{"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/media?parent=258891"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/categories?post=258891"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/docs.pingcode.com\/wp-json\/wp\/v2\/tags?post=258891"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}