{"id":107531,"date":"2026-09-19T20:20:55","date_gmt":"2026-09-19T12:20:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/107531.html"},"modified":"2026-09-19T20:20:55","modified_gmt":"2026-09-19T12:20:55","slug":"vscode-c-c%e7%8e%af%e5%a2%83%e8%ae%be%e7%bd%ae","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/107531.html","title":{"rendered":"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e"},"content":{"rendered":"<h2>VSCode\u914d\u7f6eC\/C&#043;&#043;\u7f16\u7a0b\u73af\u5883<\/h2>\n<h3>\u4e00\u3001VSCode \u7b80\u4ecb<\/h3>\n<p>\u200b VSCode \u5373Visual Studio Code&#xff0c; \u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u514d\u8d39\u5f00\u6e90\u8de8\u5e73\u53f0\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u652f\u6301\u591a\u8bed\u8a00\u7f16\u7a0b\u4e0e\u6269\u5c55\u63d2\u4ef6&#xff0c;\u96c6\u6210\u8c03\u8bd5\u3001Git\u53ca\u9ad8\u6548\u7f16\u7801\u5de5\u5177&#xff0c;\u6df1\u53d7\u5f00\u53d1\u8005\u9752\u7750\u3002 \u5b83\u672c\u8eab\u662f\u4e00\u6b3e\u8f7b\u91cf\u7684\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u4e0d\u9644\u5e26\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u73af\u5883&#xff0c;\u9700\u8981\u81ea\u884c\u5b89\u88c5\u7f16\u7a0b\u8bed\u8a00&#xff0c;VSCode\u901a\u8fc7\u5728\u7ebf\u5b89\u88c5\u6269\u5c55\u63d2\u4ef6\u6765\u914d\u7f6e\u76f8\u5e94\u7f16\u7a0b\u8bed\u8a00\u7684\u5f00\u53d1\u73af\u5883\u3002<\/p>\n<h3>\u4e8c\u3001MinGW \u4e0b\u8f7d<\/h3>\n<p> MinGW\u5b98\u7f51<\/p>\n<p>SourceForge\u4e0b\u8f7d<\/p>\n<h3>\u4e09\u3001\u6269\u5c55\u5b89\u88c5<\/h3>\n<p>\u5728VSCode\u6269\u5c55\u5546\u5e97\u641c\u7d22C\/C&#043;&#043;&#xff0c;\u5b89\u88c5\u4e0b\u56fe\u6846\u9009\u7684\u7a0b\u5e8f\u3002\u53ea\u9700\u5b89\u88c5\u5176\u4e2d\u4e00\u4e2a\u5373\u53ef&#xff0c;\u4e0d\u8fc7\u7b2c\u4e8c\u4e2a\u4f7f\u7528\u66f4\u4fbf\u6377&#xff0c;\u5bf9\u65b0\u624b\u53cb\u597d\u3002<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122053-6aae7e25f293a.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u56db\u3001\u7f16\u8bd1\u8fd0\u884c\u548c\u8c03\u8bd5<\/h3>\n<h4>4.1 C\/C&#043;&#043; Runner \u63d2\u4ef6<\/h4>\n<p>\u200b C\/C&#043;&#043; Runner \u63d2\u4ef6\u5b89\u88c5\u597d\u540e&#xff0c;\u53ea\u8981GCC\u7684\u7a0b\u5e8f\u8def\u5f84&#xff08;MinGW64\/bin&#xff09;\u5728Path\u73af\u5883\u53d8\u91cf\u4e2d&#xff08;\u5728\u4efb\u4f55cmd\u7a97\u53e3\u90fd\u80fd\u4f7f\u7528gcc\u3001g&#043;&#043;\u6216gdb&#xff09;&#xff0c;\u4fbf\u53ef\u4ee5\u76f4\u63a5\u901a\u8fc7\u5feb\u6377\u952e\u8fdb\u884c\u7f16\u8bd1\u3001\u8fd0\u884c\u3001\u8c03\u8bd5\u4e86\u3002<\/p>\n<h4>4.1.1 \u5355\u6587\u4ef6\u7f16\u8bd1\u8fd0\u884c\u8c03\u8bd5<\/h4>\n<table>\n<tr>\u5feb\u6377\u952e\u8bf4\u660e<\/tr>\n<tbody>\n<tr>\n<td>Ctrl &#043; Alt &#043; B<\/td>\n<td>\u7f16\u8bd1&#xff0c;\u751f\u6210\u4e00\u4e2abuild\u6587\u4ef6\u5939<\/td>\n<\/tr>\n<tr>\n<td>Ctrl &#043; Alt &#043; R<\/td>\n<td>\u8fd0\u884c\u3002\u9700\u8981\u5148\u7f16\u8bd1\u3002<\/td>\n<\/tr>\n<tr>\n<td>Ctrl &#043; Alt &#043; D<\/td>\n<td>\u8c03\u8bd5\u3002\u9700\u8981\u5148\u7f16\u8bd1\u3002\u8def\u5f84\u4e2d\u4e0d\u80fd\u6709\u4e2d\u6587&#xff08;\u89e3\u51b3\u65b9\u6cd5\u89c1\u4e0b&#xff09;\u3002<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<h4>4.1.2 \u591a\u6587\u4ef6\u7f16\u8bd1\u8fd0\u884c\u8c03\u8bd5<\/h4>\n<p>\u5b89\u88c5C\/C&#043;&#043; Runner \u63d2\u4ef6\u540e&#xff0c;\u5e95\u90e8\u72b6\u6001\u680f\u4f1a\u51fa\u73b0\u65b0\u7684\u5de5\u5177&#xff0c;\u5206\u522b\u662f\u6e90\u6587\u4ef6\u76ee\u5f55&#xff0c;\u7f16\u8bd1\u65b9\u5f0f(Debug\/Release), \u7f16\u8bd1&#xff0c;\u8fd0\u884c&#xff0c;\u6e05\u7406\u7f16\u8bd1\u6587\u4ef6&#xff0c;\u8c03\u8bd5\u3002\u70b9\u51fb\u76ee\u5f55\u53ef\u4ee5\u9009\u62e9\u6e90\u6587\u4ef6\u76ee\u5f55&#xff0c;\u70b9\u51fb\u7f16\u8bd1\u6309\u94ae\u4fbf\u4f1a\u7f16\u8bd1\u8be5\u76ee\u5f55\u4e0b\u7684\u6240\u6709\u6e90\u6587\u4ef6&#xff0c;\u751f\u6210build\u6587\u4ef6\u5939\u5b58\u653e\u76ee\u6807\u6587\u4ef6\u548c\u53ef\u6267\u884c\u7a0b\u5e8f\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122054-6aae7e2621d2f.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h4>4.2 C\/C&#043;&#043; \u63d2\u4ef6<\/h4>\n<h5>&#xff08;1&#xff09;.vscode\u6587\u4ef6<\/h5>\n<p>\u200b \u5982\u679c\u60f3\u81ea\u5b9a\u4e49gcc\u6216gdb\u8def\u5f84&#xff0c;\u53ea\u9700\u4fee\u6539\u81ea\u52a8\u751f\u6210\u7684.vscode\u6587\u4ef6\u5939\u4e0b\u7684\u6587\u6863\u3002\u6587\u6863\u5185\u5bb9\u89e3\u8bf4\u89c1\u4e0b&#xff08;\u6587\u6863\u548c\u4e0b\u9762\u63d2\u4ef6\u6240\u9700\u7684\u6587\u6863\u76f8\u4f3c&#xff09;\u3002<\/p>\n<p>\u200b C\/C&#043;&#043; \u63d2\u4ef6\u5b89\u88c5\u597d\u540e&#xff0c;\u9700\u8981\u624b\u52a8\u914d\u7f6e\u73af\u5883\u3002\u64cd\u4f5c\u65b9\u6cd5\u5982\u4e0b&#xff1a;<\/p>\n<p>\u200b 1. \u5728\u5f53\u524d\u5de5\u4f5c\u76ee\u5f55\u4e0b\u521b\u5efa .vscode \u6587\u4ef6\u5939\u3002<\/p>\n<p>\u200b 2. \u5728vscode\u6587\u4ef6\u5939\u4e2d\u521b\u5efa\u4e24\u4e2ajson\u6587\u4ef6&#xff1a;tasks.json, launch.json\u3002<\/p>\n<p>\u200b tasks.json \u7528\u4e8e\u914d\u7f6e\u7f16\u8bd1\u5668&#xff0c;\u8bbe\u7f6e\u7f16\u8bd1\u547d\u4ee4&#xff0c;\u751f\u6210\u53ef\u6267\u884c\u6587\u4ef6\u3002<\/p>\n<p>\u200b launch.json \u7528\u4e8e\u914d\u7f6egdb\u8c03\u8bd5\u5668\u3002\u8be5\u63d2\u4ef6\u9ed8\u8ba4\u7528gdb\u6765\u8fd0\u884c\u7a0b\u5e8f&#xff0c;\u800cgdb\u5bf9\u4e2d\u6587\u8def\u5f84\u7684\u652f\u6301\u4e0d\u592a\u53cb\u597d&#xff0c;\u6240\u4ee5\u5373\u4f7f\u4e0d\u8c03\u8bd5&#xff0c;\u53ea\u8fd0\u884c&#xff0c;\u4e5f\u4e0d\u80fd\u6709\u4e2d\u6587\u8def\u5f84\u3002<\/p>\n<p>\u200b VSCode \u652f\u6301\u4ee5\u4e0b\u53d8\u91cf&#xff0c;\u7528\u4e8e\u52a8\u6001\u751f\u6210\u6587\u4ef6\u8def\u5f84\u6216\u53c2\u6570&#xff1a;<\/p>\n<p>\u200b ${file}&#xff1a;\u5f53\u524d\u6253\u5f00\u7684\u6587\u4ef6\u8def\u5f84\u3002<\/p>\n<p>\u200b ${fileDirname}&#xff1a;\u5f53\u524d\u6587\u4ef6\u7684\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n<p>\u200b ${fileBasename}&#xff1a;\u5f53\u524d\u6587\u4ef6\u7684\u6587\u4ef6\u540d&#xff08;\u5305\u62ec\u6269\u5c55\u540d&#xff09;\u3002<\/p>\n<p>\u200b ${fileBasenameNoExtension}&#xff1a;\u5f53\u524d\u6587\u4ef6\u7684\u6587\u4ef6\u540d&#xff08;\u4e0d\u5305\u62ec\u6269\u5c55\u540d&#xff09;\u3002<\/p>\n<p>\u200b  ${workspaceFolder}&#xff1a;\u5de5\u4f5c\u533a\u6839\u76ee\u5f55\u8def\u5f84\u3002<\/p>\n<hr \/>\n<h6>tasks.json<\/h6>\n<p><span class=\"token punctuation\">{<\/span><br \/>\n    <span class=\"token string\">&#034;version&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;2.0.0&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token string\">&#034;tasks&#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\">&#034;label&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;Build C Program&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;type&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;shell&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token comment\">\/\/ &#034;type&#034;: &#034;process&#034;,<\/span><br \/>\n            <span class=\"token comment\">\/\/ &#034;type&#034;: &#034;cppbuild&#034;,<\/span><br \/>\n            <span class=\"token string\">&#034;command&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;gcc&#034;<\/span><span class=\"token punctuation\">,<\/span>   <span class=\"token comment\">\/\/ gcc\u7a0b\u5e8f\u8def\u5f84<\/span><br \/>\n            <span class=\"token string\">&#034;args&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n                <span class=\"token string\">&#034;-fdiagnostics-color&#061;always&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-g&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;${file}&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;-o&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;${fileDirname}\/${fileBasenameNoExtension}&#034;<\/span><br \/>\n            <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;group&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">{<\/span><br \/>\n                <span class=\"token string\">&#034;kind&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;build&#034;<\/span><span class=\"token punctuation\">,<\/span><br \/>\n                <span class=\"token string\">&#034;isDefault&#034;<\/span><span class=\"token operator\">:<\/span> true<span class=\"token comment\">\/\/ \u4f7f\u7528\u5feb\u6377\u952e\u65f6\u9ed8\u8ba4\u8fd0\u884c\u6b64\u4efb\u52a1<\/span><br \/>\n            <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;problemMatcher&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token punctuation\">[<\/span><br \/>\n                <span class=\"token string\">&#034;$gcc&#034;<\/span><br \/>\n            <span class=\"token punctuation\">]<\/span><span class=\"token punctuation\">,<\/span><br \/>\n            <span class=\"token string\">&#034;detail&#034;<\/span><span class=\"token operator\">:<\/span> <span class=\"token string\">&#034;\u4f7f\u7528 gcc \u7f16\u8bd1\u5f53\u524d\u6587\u4ef6&#034;<\/span><br \/>\n        <span class=\"token punctuation\">}<\/span><span class=\"token punctuation\">,<\/span><br \/>\n    <span class=\"token punctuation\">]<\/span><br \/>\n<span class=\"token punctuation\">}<\/span><\/p>\n<p>\u200b \u5f3a\u8c03\u4e00\u4e0b&#xff1a;<\/p>\n<p>\u200b &#034;tasks&#034;\u662f\u4e2a\u5217\u8868&#xff0c;\u5b83\u53ef\u4ee5\u5305\u542b\u591a\u4e2a\u4efb\u52a1&#xff0c;\u8bf4\u767d\u4e86\u5c31\u662f\u7f16\u8bd1\u914d\u7f6e\u3002\u4ee5\u4e0a\u53ea\u5217\u51fa\u4e86\u4e00\u4e2a\u7f16\u8bd1\u914d\u7f6e\u3002<\/p>\n<p>\u200b &#034;group&#034;\u5c5e\u6027&#xff1a;<\/p>\n<p>\u200b \u201ckind\u201d: &#034;build&#034;\u8868\u793a\u8fd9\u662f\u4e00\u4e2a\u7f16\u8bd1\u4efb\u52a1&#xff0c;<\/p>\n<p>\u200b \u201cisDefault\u201d \u5c5e\u6027\u8868\u793a\u662f\u9ed8\u8ba4\u7684\u7f16\u8bd1\u4efb\u52a1(\u4f7f\u7528\u5feb\u6377\u952eCtrl&#043;Shift&#043;B\u7f16\u8bd1\u9ed8\u8ba4\u4f7f\u7528\u8be5\u4efb\u52a1)\u3002<\/p>\n<p>\u200b \u201clabel\u201d: \u201cBuild C Program\u201d \u8868\u793a\u8fd9\u4e2a\u4efb\u52a1\u7684\u540d\u79f0&#xff0c;\u5982\u679c\u6ca1\u6709\u8bbe\u7f6e\u9ed8\u8ba4\u4efb\u52a1&#xff0c;\u7f16\u8bd1\u65f6&#xff0c;\u4f1a\u663e\u793a\u8be5\u4efb\u52a1\u7684&#034;label&#034;\u548c&#034;detail&#034;\u4f9b\u7528\u6237\u9009\u62e9\u3002<\/p>\n<hr \/>\n<h6>launch.json<\/h6>\n<p>{<br \/>\n  &#034;version&#034;: &#034;0.2.0&#034;,<br \/>\n  &#034;configurations&#034;: [<br \/>\n      {<br \/>\n          &#034;name&#034;: &#034;Debug C Program&#034;,<br \/>\n          &#034;type&#034;: &#034;cppdbg&#034;,<br \/>\n          &#034;request&#034;: &#034;launch&#034;,<br \/>\n          &#034;program&#034;: &#034;${workspaceFolder}\\\\\\\\${fileBasenameNoExtension}.exe&#034;, \/\/ \u7a0b\u5e8f\u8def\u5f84<br \/>\n          &#034;args&#034;: [], \/\/ \u547d\u4ee4\u884c\u53c2\u6570<br \/>\n          &#034;stopAtEntry&#034;: false,<br \/>\n          &#034;cwd&#034;: &#034;${workspaceFolder}&#034;, \/\/ \u5de5\u4f5c\u76ee\u5f55<br \/>\n          &#034;environment&#034;: [], \/\/ \u73af\u5883\u53d8\u91cf<br \/>\n          &#034;externalConsole&#034;: false,\/\/ \u662f\u5426\u4f7f\u7528\u5916\u90e8\u7ec8\u7aef\u663e\u793a\u8f93\u51fa<br \/>\n          &#034;MIMode&#034;: &#034;gdb&#034;, \/\/ \u4f7f\u7528 GDB \u4f5c\u4e3a\u8c03\u8bd5\u5668<br \/>\n          &#034;setupCommands&#034;: [<br \/>\n              {<br \/>\n                  &#034;description&#034;: &#034;Enable pretty-printing for gdb&#034;,<br \/>\n                  &#034;text&#034;: &#034;-enable-pretty-printing&#034;,<br \/>\n                  &#034;ignoreFailures&#034;: true<br \/>\n              }<br \/>\n          ],<br \/>\n          &#034;preLaunchTask&#034;: &#034;Build C Program&#034;, \/\/ \u8c03\u8bd5\u524d\u8fd0\u884c\u7684\u4efb\u52a1<br \/>\n          &#034;miDebuggerPath&#034;: &#034;gdb&#034; \/\/ GDB \u8def\u5f84<br \/>\n      }<br \/>\n  ]<br \/>\n}<\/p>\n<p>\u5f3a\u8c03\u4e00\u4e0b&#xff1a;<\/p>\n<p>\u200b &#034;program&#034;\u5c5e\u6027\u6307\u5b9a\u8981\u8c03\u8bd5\u7684\u53ef\u6267\u884c\u6587\u4ef6\u3002\u5fc5\u987b\u662f\u7edd\u5bf9\u8def\u5f84&#xff0c;\u5e76\u4e14\u4e0d\u542b\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<p>\u200b &#034;cwd&#034;\u5c5e\u6027\u6307\u5b9a\u8981\u8c03\u8bd5\u7684\u6e90\u6587\u4ef6\u6240\u5728\u8def\u5f84\u3002\u5fc5\u987b\u662f\u7edd\u5bf9\u8def\u5f84&#xff0c;\u5e76\u4e14\u4e0d\u542b\u4e2d\u6587\u5b57\u7b26\u3002<\/p>\n<p>\u200b \u201cmiDebuggerPath\u201d \u5c5e\u6027\u6307\u5b9agdb\u7a0b\u5e8f\u8def\u5f84\u3002<\/p>\n<p>\u200b \u201cpreLaunchTask\u201d \u5c5e\u6027\u6307\u5b9a\u5728\u8c03\u8bd5\u524d&#xff0c;\u5148\u5b8c\u6210\u7f16\u8bd1\u4efb\u52a1\u3002\u5176\u503c\u548ctasks.json\u6587\u4ef6\u4e2d\u4efb\u52a1\u7684 &#034;label&#034;\u5c5e\u6027\u76f8\u5bf9\u5e94\u3002<\/p>\n<p>\u200b \u201cstopAtEntry\u201d \u5c5e\u6027\u8868\u793a\u662f\u5426\u5728\u8c03\u8bd5\u65f6\u81ea\u52a8\u505c\u5728\u5165\u53e3\u51fd\u6570\u5904\u3002<\/p>\n<p>\u200b \u201cexternalConsole\u201d \u5c5e\u6027\u8868\u793a\u662f\u5426\u5728\u8c03\u8bd5\u65f6\u8c03\u7528CMD\u7a97\u53e3\u8fd0\u884c\u7a0b\u5e8f&#xff0c;\u4e3afalse\u65f6\u5219\u5728\u5185\u7f6e\u7ec8\u7aef\u8fd0\u884c\u7a0b\u5e8f&#xff0c;\u6ce8\u610f\u5185\u7f6e\u7ec8\u7aef\u7684\u8f93\u51fa\u7f16\u7801\u4e3autf-8, \u800cgdb\u8c03\u8bd5\u5668\u7684\u8f93\u51fa\u7f16\u7801\u4e3agbk&#xff0c;\u6240\u4ee5\u5728\u5185\u7f6e\u7ec8\u7aef\u4e2d\u8fdb\u884cgdb\u8c03\u8bd5\u8f93\u51fa\u7684\u4e00\u822c\u662f\u4e71\u7801\u3002<\/p>\n<h5>&#xff08;2&#xff09; \u7f16\u8bd1\u3001\u8fd0\u884c\u3001\u8c03\u8bd5\u65b9\u5f0f<\/h5>\n<table>\n<tr>\u64cd\u4f5c\u6b65\u9aa4\u5feb\u6377\u952e<\/tr>\n<tbody>\n<tr>\n<td>\u7f16\u8bd1<\/td>\n<td>\u7ec8\u7aef &gt; \u8fd0\u884c\u751f\u6210\u4efb\u52a1<\/td>\n<td>Ctrl&#043;Shift&#043;B<\/td>\n<\/tr>\n<tr>\n<td>\u8fd0\u884c<\/td>\n<td>\u8fd0\u884c &gt; \u4ee5\u975e\u8c03\u8bd5\u6a21\u5f0f\u8fd0\u884c<\/td>\n<td>Ctrl&#043;F5<\/td>\n<\/tr>\n<tr>\n<td>\u8c03\u8bd5<\/td>\n<td>\u8fd0\u884c &gt; \u542f\u52a8\u8c03\u8bd5<\/td>\n<td>F5<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<hr \/>\n<h3>\u4e94\u3001\u63d2\u4ef6\u8bbe\u7f6e<\/h3>\n<h4>5.1 \u81ea\u5b9a\u4e49\u63d2\u4ef6\u8bbe\u7f6e<\/h4>\n<p>\u9f7f\u8f6e\u56fe\u6807 &#8211; \u8bbe\u7f6e(Settings) \u5feb\u6377\u952e Ctrl &#043; , <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122054-6aae7e26343e7.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/> \u6269\u5c55(Extensions)&#xff1a;\u9009\u62e9\u5bf9\u5e94\u7684\u63d2\u4ef6\u8fdb\u884c\u53c2\u6570\u8bbe\u7f6e\u3002 <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122054-6aae7e264da68.png\" alt=\"\u5728\u8fd9\u91cc\u63d2\u5165\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<h3>\u516d\u3001VSCode \u8fd0\u884c\u5305\u542b\u4e2d\u6587\u8def\u5f84\u7684GDB \u8c03\u8bd5\u89e3\u51b3\u529e\u6cd5<\/h3>\n<p>\u200b \u8be5\u65b9\u6cd5\u80fd\u5f7b\u5e95\u89e3\u51b3\u8c03\u8bd5\u65f6\u4e2d\u6587\u8def\u5f84\u62a5\u9519\u7684\u95ee\u9898\u3002\u4f7f\u7528\u8be5\u65b9\u6cd5\u540e&#xff0c;\u5141\u8bb8VSCode\u7684\u5de5\u4f5c\u8def\u5f84\u4e2d\u5305\u542b\u4e2d\u6587&#xff0c;\u751f\u6210\u7684\u53ef\u6267\u884c\u6587\u4ef6\u7684\u8def\u5f84\u6216\u6587\u4ef6\u540d\u5305\u542b\u4e2d\u6587\u3002<\/p>\n<p>\u200b \u8be5\u65b9\u6cd5\u901a\u8fc7\u4fee\u6539\u7cfb\u7edf\u7684\u8bed\u8a00\u8bbe\u7f6e\u6765\u8fbe\u5230\u76ee\u7684\u3002\u4f46\u662f\u8be5\u65b9\u6cd5\u4f1a\u4ea7\u751f\u4ee5\u4e0b\u526f\u4f5c\u7528&#xff1a;<\/p>\n<li>\n<p>\u6587\u4ef6\u8d44\u6e90\u7ba1\u7406\u5668\u51fa\u73b0BUG\u3002\u5177\u4f53\u8868\u73b0\u4e3a\u7cfb\u7edf\u7684\u6587\u4ef6\u8def\u5f84\u53ef\u80fd\u51fa\u73b0\u4e71\u7801&#xff0c;\u5bfc\u81f4\u67d0\u4e9b\u6587\u4ef6\u5939\u4e0d\u80fd\u6253\u5f00\u3001\u67d0\u4e9b\u6587\u4ef6\u4e0d\u80fd\u8bfb\u53d6\u3001\u5199\u5165\u3002\u5916\u90e8\u79fb\u52a8U\u76d8\u8bc6\u522b\u4e0d\u4e86\u6216\u6587\u4ef6\u5199\u5165\u3001\u8bfb\u53d6\u5931\u8d25\u7b49\u95ee\u9898\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b89\u88c5\u65b0\u7a0b\u5e8f\u65f6&#xff0c;\u5b89\u88c5\u6b65\u9aa4\u754c\u9762\u53ef\u80fd\u4f1a\u6709\u4e2d\u6587\u4e71\u7801\u3002<\/p>\n<p>\u4e0d\u8fc7&#xff0c;\u8be5\u65b9\u6cd5\u662f\u53ef\u9006\u7684&#xff0c;\u5982\u679c\u95ee\u9898\u5f88\u5927&#xff0c;\u53ef\u4ee5\u4fee\u6539\u56de\u6765\u3002<\/p>\n<p>\u5177\u4f53\u6b65\u9aa4\u5982\u4e0b&#xff1a;<\/p>\n<li>\u6253\u5f00\u8bbe\u7f6e<\/li>\n<li>\u65f6\u95f4\u548c\u8bed\u8a00<\/li>\n<li>\u8bed\u8a00<\/li>\n<li>\u7ba1\u7406\u8bed\u8a00\u8bbe\u7f6e<\/li>\n<li>\u66f4\u6539\u7cfb\u7edf\u533a\u57df\u8bbe\u7f6e<\/li>\n<li>\u52fe\u9009&#034;Beta\u7248&#034;<\/li>\n<li>\u786e\u5b9a\u5e76\u91cd\u542f\u7535\u8111<\/li>\n<\/li>\n<p>\u9644\u56fe\u5982\u4e0b&#xff1a;<\/p>\n<p>\u66f4\u6539\u7cfb\u7edf\u533a\u57df\u8bbe\u7f6e<\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122054-6aae7e2681e53.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n<p>\u52fe\u9009&#034;Beta\u7248&#034; <img decoding=\"async\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122054-6aae7e269b63d.png\" alt=\"\u8bf7\u6dfb\u52a0\u56fe\u7247\u63cf\u8ff0\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>VSCode\u914d\u7f6eC\/C\u7f16\u7a0b\u73af\u5883<br \/>\n\u4e00\u3001VSCode \u7b80\u4ecb<br \/>\n\u200b VSCode \u5373Visual Studio Code&#xff0c; \u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u514d\u8d39\u5f00\u6e90\u8de8\u5e73\u53f0\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u652f\u6301\u591a\u8bed\u8a00\u7f16\u7a0b\u4e0e\u6269\u5c55\u63d2\u4ef6&#xff0c;\u96c6\u6210\u8c03\u8bd5\u3001Git\u53ca\u9ad8\u6548\u7f16\u7801\u5de5\u5177&#xff0c;\u6df1\u53d7\u5f00\u53d1\u8005\u9752\u7750\u3002 \u5b83\u672c\u8eab\u662f\u4e00\u6b3e\u8f7b\u91cf\u7684\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u4e0d\u9644\u5e26\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u73af\u5883&#xff0c;\u9700\u8981\u81ea\u884c\u5b89\u88c5\u7f16\u7a0b\u8bed\u8a00&#xff0c;VSCode\u901a\u8fc7\u5728\u7ebf\u5b89\u88c5\u6269\u5c55\u63d2\u4ef6\u6765\u914d\u7f6e\u76f8\u5e94\u7f16\u7a0b\u8bed\u8a00\u7684\u5f00\u53d1\u73af\u5883\u3002<br \/>\n\u4e8c\u3001M<\/p>\n","protected":false},"author":2,"featured_media":107525,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[12227,12228,148,76],"topic":[],"class_list":["post-107531","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-12227","tag-12228","tag-visual-studio-code","tag-vscode"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \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\/107531.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"VSCode\u914d\u7f6eC\/C\u7f16\u7a0b\u73af\u5883 \u4e00\u3001VSCode \u7b80\u4ecb \u200b VSCode \u5373Visual Studio Code&#xff0c; \u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u514d\u8d39\u5f00\u6e90\u8de8\u5e73\u53f0\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u652f\u6301\u591a\u8bed\u8a00\u7f16\u7a0b\u4e0e\u6269\u5c55\u63d2\u4ef6&#xff0c;\u96c6\u6210\u8c03\u8bd5\u3001Git\u53ca\u9ad8\u6548\u7f16\u7801\u5de5\u5177&#xff0c;\u6df1\u53d7\u5f00\u53d1\u8005\u9752\u7750\u3002 \u5b83\u672c\u8eab\u662f\u4e00\u6b3e\u8f7b\u91cf\u7684\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u4e0d\u9644\u5e26\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u73af\u5883&#xff0c;\u9700\u8981\u81ea\u884c\u5b89\u88c5\u7f16\u7a0b\u8bed\u8a00&#xff0c;VSCode\u901a\u8fc7\u5728\u7ebf\u5b89\u88c5\u6269\u5c55\u63d2\u4ef6\u6765\u914d\u7f6e\u76f8\u5e94\u7f16\u7a0b\u8bed\u8a00\u7684\u5f00\u53d1\u73af\u5883\u3002 \u4e8c\u3001M\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/107531.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2026-09-19T12:20:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122053-6aae7e25f293a.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\/107531.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/107531.html\",\"name\":\"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2026-09-19T12:20:55+00:00\",\"dateModified\":\"2026-09-19T12:20:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/107531.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/107531.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/107531.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e\"}]},{\"@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":"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \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\/107531.html","og_locale":"zh_CN","og_type":"article","og_title":"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"VSCode\u914d\u7f6eC\/C\u7f16\u7a0b\u73af\u5883 \u4e00\u3001VSCode \u7b80\u4ecb \u200b VSCode \u5373Visual Studio Code&#xff0c; \u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u514d\u8d39\u5f00\u6e90\u8de8\u5e73\u53f0\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u652f\u6301\u591a\u8bed\u8a00\u7f16\u7a0b\u4e0e\u6269\u5c55\u63d2\u4ef6&#xff0c;\u96c6\u6210\u8c03\u8bd5\u3001Git\u53ca\u9ad8\u6548\u7f16\u7801\u5de5\u5177&#xff0c;\u6df1\u53d7\u5f00\u53d1\u8005\u9752\u7750\u3002 \u5b83\u672c\u8eab\u662f\u4e00\u6b3e\u8f7b\u91cf\u7684\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u4e0d\u9644\u5e26\u4efb\u4f55\u7f16\u7a0b\u8bed\u8a00\u73af\u5883&#xff0c;\u9700\u8981\u81ea\u884c\u5b89\u88c5\u7f16\u7a0b\u8bed\u8a00&#xff0c;VSCode\u901a\u8fc7\u5728\u7ebf\u5b89\u88c5\u6269\u5c55\u63d2\u4ef6\u6765\u914d\u7f6e\u76f8\u5e94\u7f16\u7a0b\u8bed\u8a00\u7684\u5f00\u53d1\u73af\u5883\u3002 \u4e8c\u3001M","og_url":"https:\/\/www.wsisp.com\/helps\/107531.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2026-09-19T12:20:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2026\/09\/20260919122053-6aae7e25f293a.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\/107531.html","url":"https:\/\/www.wsisp.com\/helps\/107531.html","name":"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2026-09-19T12:20:55+00:00","dateModified":"2026-09-19T12:20:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/107531.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/107531.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/107531.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"VSCode C\/C++\u73af\u5883\u8bbe\u7f6e"}]},{"@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\/107531","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=107531"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/107531\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/107525"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=107531"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=107531"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=107531"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=107531"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}