{"id":50696,"date":"2025-08-10T11:38:55","date_gmt":"2025-08-10T03:38:55","guid":{"rendered":"https:\/\/www.wsisp.com\/helps\/50696.html"},"modified":"2025-08-10T11:38:55","modified_gmt":"2025-08-10T03:38:55","slug":"mac%e7%94%b5%e8%84%91%e6%90%ad%e8%bd%bdc%e3%80%81c%e7%8e%af%e5%a2%83%ef%bc%88%e5%9f%ba%e4%ba%8evs-code%ef%bc%89","status":"publish","type":"post","link":"https:\/\/www.wsisp.com\/helps\/50696.html","title":{"rendered":"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09"},"content":{"rendered":"<p>\u00a0\u771f\u9999&#xff0c;\u8fd8\u5f97\u662f\u771f\u9999&#xff0c;\u7528\u4e86\u4e00\u6bb5Clion\u53d1\u73b0\u8fd9\u73a9\u610f\u662f\u771f\u7684\u5185\u5b58\u6740\u624b&#xff0c;mac\u7535\u8111\u8fd9\u79cd\u5185\u5b58\u548cwindow\u51e0\u4e4e\u5168\u662f1TB\u8d77\u6b65\u5185\u5b58\u8fd9\u6bd4\u4e0d\u4e86&#xff0c;Clion\u786e\u5b9e\u975e\u5e38\u597d\u7528\u4e5f\u5f88\u667a\u80fd&#xff0c;\u4f46\u662f\u51fa\u4e8e\u65e0\u5948&#xff0c;\u53ea\u80fd\u597d\u597d\u719f\u6089\u4e00\u4e0bvscode\u4e86&#xff0c;\u5f53\u7136\u5927\u5bb6\u5982\u679c\u8fd8\u662f\u559c\u6b22Clion\u7684\u8bdd\u4e5f\u53ef\u4ee5\u5728\u8bc4\u8bba\u533a\u548c\u7b14\u8005\u8bf4\u4e00\u58f0&#xff0c;\u7b14\u8005\u53ef\u4ee5\u51fa\u4e00\u7bc7\u57fa\u4e8emac\u7535\u8111\u7684Clion c\u3001c&#043;&#043;\u73af\u5883\u642d\u8f7d&#xff0c;\u6216\u8005\u5b66\u4e60\u7535\u6c14\u7684\u540c\u5b66\u4f7f\u7528mac\u5bf9\u5355\u7247\u673a\u5f00\u53d1\u6709\u8981\u6c42&#xff0c;\u4e5f\u53ef\u4ee5\u51fa\u57fa\u4e8eClion\u5f00\u53d1\u5355\u7247\u673a&#xff0c;\u4e3b\u8981\u7528\u5230\u5c0f\u8682\u8681&#xff08;PlatformIO&#xff09;\u548cstm32CubeMX<\/p>\n<\/p>\n<p>\u6ce8&#xff1a;\u5982\u679c\u662f\u6ca1\u6709Linux\u7684\u540c\u5b66\u53ef\u4ee5\u5148\u7b80\u5355\u7684\u5b66\u4e60\u4e00\u4e0bLinux\u7684\u5e38\u7528\u6307\u4ee4&#xff0c;\u76ee\u524d\u9636\u6bb5vs code\u5bf9\u4e8e\u65b0\u624b\u8fd8\u662f\u6ca1\u6709\u8fd9\u4e48\u53cb\u597d\u7684<\/p>\n<p>Linux\u7684\u5e38\u89c1\u6307\u4ee4\u548c\u5feb\u6377\u952e\u5927\u5168&#xff08;\u542b\u7528\u6cd5&#xff09;\u6301\u7eed\u66f4\u65b0_linux\u5feb\u6377\u6307\u4ee4-CSDN\u535a\u5ba2<\/p>\n<\/p>\n<h2>\u4e00\u3001\u4ec0\u4e48\u662fvscode<\/h2>\n<p>Visual Studio Code&#xff08;VS Code&#xff09;\u00a0\u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u8de8\u5e73\u53f0\u7684\u4ee3\u7801\u7f16\u8f91\u5668&#xff0c;\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7cfb\u7edf\u3002\u5b83\u7ed3\u5408\u4e86\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\u7684\u5feb\u901f\u542f\u52a8\u4e0e\u96c6\u6210\u5f00\u53d1\u73af\u5883&#xff08;IDE&#xff09;\u7684\u5f3a\u5927\u529f\u80fd&#xff0c;\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\u3002<\/p>\n<p>\u800c\u5728\u5927\u5bb6\u521d\u5b66\u9636\u6bb5\u5b66\u6821\u6216\u8005\u54ea\u4e9b\u673a\u6784\u4f1a\u63a8\u4e24\u79cd\u7f16\u8f91\u5668&#xff1a;DEV c&#043;&#043;\u6216\u8005vs 2022&#xff0c;\u4f46\u662f\u5982\u679c\u662fmac\u7528\u6237\u7684\u8bdd\u5c31\u65e0\u6cd5\u4f7f\u7528\u8fd9\u4e24\u4e2aIDE&#xff0c;\u90a3\u4e48\u5927\u5bb6\u5c31\u53ef\u4ee5\u9009\u62e9vs code<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"2530\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033829-689814357f26d.png\" width=\"2560\" \/><\/p>\n<\/p>\n<h2>\u4e8c\u3001\u4e0b\u8f7dvs code<\/h2>\n<p>\u4e0b\u8f7d\u94fe\u63a5&#xff1a;\u200b\u200b\u200b\u200b\u200b\u200bvs code<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1298\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033838-6898143eb9a8b.png\" width=\"2454\" \/><\/p>\n<p>\u00a0\u70b9\u51fb<span style=\"color:#fe2c24\">download<\/span>\u8df3\u8f6c\u7248\u672c\u9009\u62e9\u9875\u9762&#xff0c;\u5927\u5bb6\u9009\u62e9<span style=\"color:#fe2c24\">mac os&#xff0c;\u70b9\u51fb\u540e\u81ea\u52a8\u4e0b\u8f7d<\/span><\/p>\n<p>\u5b89\u88c5\u5b8c\u6210\u540e\u6253\u5f00vs code&#xff0c;\u6211\u8fd9\u91cc\u662f\u4e4b\u524d\u4f7f\u7528\u8fc7\u6240\u4ee5\u662f\u4e2d\u6587\u5e76\u4e14\u6709\u5386\u53f2\u6587\u4ef6&#xff0c;\u5927\u5bb6\u7b2c\u4e00\u6b21\u4e0b\u8f7d\u662f\u6ca1\u6709\u7684<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1836\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033842-689814425bc08.png\" width=\"2938\" \/><\/p>\n<h2>\u4e09\u3001\u73af\u5883\u642d\u8f7d<\/h2>\n<h3>3.1 \u00a0\u7b80\u7565\u7684\u754c\u9762\u4ecb\u7ecd<\/h3>\n<p>\u9996\u5148\u5927\u5bb6\u770b\u5230\u6700\u5de6\u8fb9\u8fd9\u4e00\u680f&#xff0c;\u4f1a\u6709\u51e0\u4e2a\u56fe\u6807&#xff0c;\u7b2c\u4e00\u4e2a\u5c31\u662f\u6211\u4eec\u7684\u6587\u4ef6\u65b9\u9762\u7684&#xff0c;\u7b2c\u4e8c\u4e2a\u662f\u641c\u7d22&#xff1b;\u7b2c\u4e09\u4e2a\u662f\u6211\u4eecgit\u7684\u4e00\u4e2a\u7ba1\u7406&#xff1b;\u7b2c\u56db\u4e2a\u662frun\u548cdebug&#xff0c;\u7528\u4e8e\u8c03\u8bd5\u7684&#xff1b;\u7b2c\u4e94\u4e2a\u5c31\u662f\u6211\u4eec\u7684\u63d2\u4ef6\u5e02\u573a<\/p>\n<h3>3.2\u00a0 \u5b89\u88c5\u4e2d\u6587\u63d2\u4ef6<\/h3>\n<p>\u6211\u4eec\u70b9\u51fb\u63d2\u4ef6\u5546\u57ce&#xff0c;\u8f93\u5165chinese&#xff08;\u5b98\u65b9\u7684\u63d2\u4ef6&#xff09;\u540e&#xff0c;\u627e\u5230\u6211\u5728\u56fe\u4e2d\u6846\u51fa\u7684\u63d2\u4ef6&#xff0c;\u70b9\u51fb\u5b89\u88c5<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1100\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033846-68981446c4bc7.png\" width=\"1014\" \/><\/p>\n<p>\u00a0\u5b89\u88c5\u540e\u4f1a\u63d0\u793a\u91cd\u542f&#xff0c;\u8fd9\u65f6\u5019\u70b9\u51fbChange Lanuage and Restart\u5c31\u80fd\u53d8\u6210\u4e2d\u6587\u4e86<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"228\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033847-68981447594c2.png\" width=\"742\" \/><\/p>\n<\/p>\n<h3>3.3\u5728vs code \u4e2d\u4f7f\u7528clang<\/h3>\n<h4>3.3.1 \u5b89\u88c5clang<\/h4>\n<p>mac os\u5176\u5b9e\u6b63\u5e38\u6765\u8bf4\u662f\u81ea\u5e26clang\u7684&#xff0c;\u4f46\u662f\u4e0d\u6392\u9664\u5927\u5bb6\u53ef\u80fd\u51fa\u4e8e\u81ea\u5df1\u7535\u8111\u7684\u7248\u672c\u6216\u8005\u5176\u4ed6\u539f\u56e0\u6ca1\u6709&#xff0c;\u90a3\u4e48\u6211\u4eec\u5c31\u8981\u91cd\u65b0\u4e0b\u8f7d\u4e00\u4e2a<\/p>\n<p>\u6211\u4eec\u5148\u68c0\u6d4b\u4e00\u4e0b\u6709\u6ca1\u6709\u4e0b\u8f7dclang&#xff0c;\u6253\u5f00\u7ec8\u7aef\u8f93\u5165&#xff1a;<\/p>\n<p>clang &#8211;version<\/p>\n<p>\u5982\u679c\u6ca1\u6709&#xff0c;\u8f93\u5165\u8fd9\u4e2a\u547d\u4ee4 \u5b89\u88c5\u4e00\u4e0bclang&#xff1a;<\/p>\n<p>xcode-select &#8211;install<\/p>\n<h4>3.3.2\u00a0 \u5b89\u88c5c\/c&#043;&#043;\u63d2\u4ef6<\/h4>\n<p>\u8fd8\u662f\u548c\u521a\u521a\u4e00\u6837&#xff0c;\u6253\u5f00\u63d2\u4ef6\u5546\u57ce&#xff0c;\u6216\u8005\u6211\u4eec\u53ef\u4ee5\u901a\u8fc7\u5728\u6269\u5c55\u89c6\u56fe&#xff08;\u21e7\u2318X&#xff09;\u4e2d\u641c\u7d22\u201cC&#043;&#043;\u201d\u6765\u5b89\u88c5C\/C&#043;&#043;\u6269\u5c55\u3002<\/p>\n<p>\u4e2a\u4eba\u63a8\u8350\u8fd9\u4e09\u4e2a\u90fd\u53ef\u4ee5\u4e0b\u8f7d\u4e00\u4e0b&#xff0c;\u6765\u642d\u914d\u7b2c\u4e00\u4e2a\u4e3b\u8981\u7684\u63d2\u4ef6\u6765\u5f00\u53d1<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"842\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033847-68981447695af.png\" width=\"886\" \/><\/p>\n<p>\u518d\u4e0b\u8f7d\u8fd9\u4e24\u4e2a\u63d2\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"292\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033847-68981447aaa14.png\" width=\"794\" \/><\/p>\n<p>\u914d\u7f6e\u4e00\u4e0b\u7b2c\u4e00\u4e2a\u63d2\u4ef6&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"454\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033847-68981447d2df3.png\" width=\"1004\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"624\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033848-6898144810243.png\" width=\"1426\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"476\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033848-6898144888ef8.png\" width=\"1426\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"938\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033849-689814490c1b9.png\" width=\"1422\" \/><\/p>\n<p>\u5982\u679c\u5927\u5bb6\u60f3\u8981\u628a\u7ec8\u7aef\u7a97\u53e3\u5f39\u51fa\u6765\u53ef\u4ee5\u4e0b\u8f7d\u8fd9\u4e2a\u63d2\u4ef6<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"466\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033849-689814499ac7c.png\" width=\"1500\" \/><\/p>\n<p>\u968f\u540e\u6211\u4eec\u8bbe\u7f6e\u4e00\u4e0b&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"642\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033849-68981449cc2a7.png\" width=\"1362\" \/><\/p>\n<p>\u52fe\u9009\u4e00\u4e0b\u8fd9\u4e2a\u9009\u9879&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"212\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033850-6898144a36960.png\" width=\"1074\" \/><\/p>\n<p>\u968f\u540e\u914d\u7f6e\u4e00\u4e0b\u529f\u80fd&#xff1a;<\/p>\n<p>\u641c\u7d22Debug Shortcut\u00a0<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"470\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033850-6898144a660e4.png\" width=\"1504\" \/><\/p>\n<p>\u6b64\u529f\u80fd\u80fd\u591f\u5927\u5927\u65b9\u4fbf\u6211\u4eec\u8fdb\u884c\u8c03\u8bd5\u64cd\u4f5c<\/p>\n<\/p>\n<h4>3.3.3 \u68c0\u9a8cc\/c&#043;&#043;\u7684\u7f16\u8bd1<\/h4>\n<p>\u521b\u5efa\u4e00\u4e2a\u7a7a\u6587\u4ef6\u5939&#xff0c;\u60a8\u53ef\u4ee5\u5728\u5176\u4e2d\u5b58\u50a8\u6240\u6709VS Code\u9879\u76ee&#xff0c;\u7136\u540e\u521b\u5efa\u4e00\u4e2a\u5b50\u6587\u4ef6\u5939&#xff0c;\u5bfc\u822a\u5230\u5b83&#xff0c;\u5e76\u901a\u8fc7\u4e3b\u9875\u9762\u7684\u6587\u4ef6\u8fd9\u4e00\u680f&#xff08;\u5de6\u8fb9\u7b2c\u4e00\u4e2a&#xff09;\u4e2d\u6253\u5f00VS Code&#xff1a;<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"374\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033850-6898144aa3cfe.png\" width=\"378\" \/><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1260\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033850-6898144ab5591.png\" width=\"2258\" \/><\/p>\n<p>\u8fd9\u6837\u6211\u4eec\u5c31\u5728vs code\u4e2d\u6253\u5f00\u4e86\u6587\u4ef6&#xff0c;\u8fd9\u65f6\u5019\u5728\u6b64\u6587\u4ef6\u5939\u5185\u65b0\u5efa\u4e00\u4e2a\u6587\u4ef6<\/p>\n<p>\u00a0<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"544\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033852-6898144c47507.png\" width=\"884\" \/><\/p>\n<p>\u8fd9\u6837\u5c31\u53ef\u4ee5\u521b\u5efa\u4e00\u4e2ac&#043;&#043;\u6587\u4ef6&#xff0c;\u6ce8\u610f&#xff1a;vs code\u6587\u4ef6\u521b\u5efa\u7684\u65f6\u5019\u8981\u628a\u540e\u7f00\u7ed9\u6253\u6e05\u695a<\/p>\n<p>\u5c06\u8fd9\u6bb5\u4ee3\u7801\u590d\u5236\u5230\u5efa\u7acb\u7684\u6587\u4ef6\u4e2d&#xff1a;<\/p>\n<p>#include &lt;iostream&gt;<br \/>\n#include &lt;vector&gt;<br \/>\n#include &lt;string&gt;<\/p>\n<p>using namespace std;<\/p>\n<p>int main()<br \/>\n{<br \/>\n    vector&lt;string&gt; msg {&#034;Hello&#034;, &#034;C&#043;&#043;&#034;, &#034;World&#034;, &#034;from&#034;, &#034;VS Code&#034;, &#034;and the C&#043;&#043; extension!&#034;};<\/p>\n<p>    for (const string&amp; word : msg)<br \/>\n    {<br \/>\n        cout &lt;&lt; word &lt;&lt; &#034; &#034;;<br \/>\n    }<br \/>\n    cout &lt;&lt; endl;<br \/>\n}<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1034\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033852-6898144c729fb.png\" width=\"1828\" \/><\/p>\n<p>\u70b9\u51fbclang&#043;&#043;\u8fd9\u4e00\u680f<\/p>\n<p>command&#043;shift&#043;B\u540e\u8fd0\u884c\u751f\u4ea7\u4efb\u52a1&#xff0c;\u968f\u540e\u5728\u7ec8\u7aef\u8f93\u5165\u00a0 \u00a0 \u00a0<span style=\"color:#fe2c24\">.\/&#043;\u53ef\u6267\u884c\u6587\u4ef6<\/span>&#xff08;\u4e0d\u5e26\u540e\u7f00&#xff09;<\/p>\n<p>\u968f\u540e\u56de\u8f66\u4e00\u4e0b<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"244\" src=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033853-6898144deacda.png\" width=\"870\" \/><\/p>\n<\/p>\n<p>\u8fd9\u6837\u4f60\u5c31\u5b8c\u6210\u4e86\u5728vs code\u4e0a\u7684\u7b2c\u4e00\u4e2ac&#043;&#043;\u4ee3\u7801\u00a0<\/p>\n<\/p>\n<h2>\u56db\u3001\u4e86\u89e3tasks.json<\/h2>\n<p><span style=\"color:#fe2c24\">VSCode\u4e0a\u8c03\u8bd5\u5173\u952e\u4e5f\u662f\u4f9d\u8d56\u4e00\u4e2a\u914d\u7f6e\u6587\u4ef6\u7684\u53eb&#xff1a;launch.json<\/span><\/p>\n<p><img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"444\" src=\"2025-08-10o35lrt4prjj.png\" width=\"344\" \/><\/p>\n<p>\u9996\u6b21\u8fd0\u884c\u7a0b\u5e8f\u65f6&#xff0c;C&#043;&#043;\u6269\u5c55\u4f1a\u521b\u5efa\u4f4d\u4e8e\u9879\u76ee.vscode\u6587\u4ef6\u5939\u4e2d\u7684tasks.json\u3002tasks.json\u5b58\u50a8\u6784\u5efa\u914d\u7f6e\u3002&#xff08;command&#043;shift&#043;B\u540e\u81ea\u52a8\u751f\u6210&#xff09;<\/p>\n<p>\u8fd9\u662fmacOS\u4e0atasks.json\u6587\u4ef6\u7684\u793a\u4f8b&#xff1a;<img loading=\"lazy\" decoding=\"async\" alt=\"\" height=\"1088\" src=\"2025-08-10puyhmnp1xru.png\" width=\"1116\" \/><\/p>\n<p>\u6838\u5fc3\u6982\u5ff5&#xff1a;VS Code \u9700\u8981\u77e5\u9053\u600e\u4e48\u201c\u505a\u996d\u201d&#xff08;\u7f16\u8bd1\u7a0b\u5e8f&#xff09;<\/p>\n<li>\n<p>\u4f60\u7684\u6e90\u4ee3\u7801 (.cpp \u6587\u4ef6) \u662f\u201c\u98df\u8c31\u201d&#xff1a;\u5b83\u544a\u8bc9\u8ba1\u7b97\u673a\u4f60\u60f3\u505a\u4ec0\u4e48&#xff08;\u7a0b\u5e8f&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>\u7f16\u8bd1\u5668 (\u6bd4\u5982 clang&#043;&#043;) \u662f\u201c\u53a8\u5e08\u201d&#xff1a;\u5b83\u8d1f\u8d23\u628a\u201c\u98df\u8c31\u201d&#xff08;\u6e90\u4ee3\u7801&#xff09;\u53d8\u6210\u8ba1\u7b97\u673a\u80fd\u76f4\u63a5\u5403\u7684\u201c\u83dc\u201d&#xff08;\u53ef\u6267\u884c\u7a0b\u5e8f&#xff09;\u3002<\/p>\n<\/li>\n<li>\n<p>VS Code \u662f\u201c\u53a8\u623f\u603b\u7ba1\u201d&#xff1a;\u5b83\u9700\u8981\u77e5\u9053&#xff1a;<\/p>\n<ul>\n<li>\n<p>\u8bf7\u54ea\u4e2a\u201c\u53a8\u5e08\u201d&#xff08;\u7528\u4ec0\u4e48\u7f16\u8bd1\u5668&#xff0c;\u6bd4\u5982\u00a0\/usr\/bin\/clang&#043;&#043;&#xff09;&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u7ed9\u201c\u53a8\u5e08\u201d\u54ea\u4e9b\u5177\u4f53\u7684\u201c\u70f9\u996a\u6307\u4ee4\u201d&#xff08;\u7528\u4ec0\u4e48\u53c2\u6570&#xff0c;\u6bd4\u5982\u00a0-g\u00a0\u8868\u793a\u52a0\u8c03\u8bd5\u4fe1\u606f&#xff09;&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u7528\u54ea\u4e9b\u201c\u98df\u6750\u201d&#xff08;\u7f16\u8bd1\u54ea\u4e2a\u6587\u4ef6&#xff0c;\u6bd4\u5982\u00a0${file}\u00a0\u8868\u793a\u5f53\u524d\u6253\u5f00\u7684\u6587\u4ef6&#xff09;&#xff1f;<\/p>\n<\/li>\n<li>\n<p>\u201c\u505a\u597d\u7684\u83dc\u201d\u653e\u54ea\u91cc\u3001\u53eb\u4ec0\u4e48\u540d\u5b57&#xff08;\u8f93\u51fa\u7684\u7a0b\u5e8f\u6587\u4ef6&#xff0c;\u6bd4\u5982\u00a0${fileDirname}\/${fileBasenameNoExtension}&#xff09;&#xff1f;<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<p>tasks.json\u00a0\u5c31\u662f\u5199\u7ed9\u201c\u53a8\u623f\u603b\u7ba1\u201dVS Code\u7684\u201c\u53a8\u5e08\u5de5\u4f5c\u8bf4\u660e\u4e66\u201d&#xff01;<\/p>\n<ul>\n<li>\n<p>\u5b83\u600e\u4e48\u6765\u7684&#xff1f;\u00a0\u5f53\u4f60\u7b2c\u4e00\u6b21\u5728 VS Code \u91cc\u5c1d\u8bd5\u8fd0\u884c\u6216\u8c03\u8bd5 C&#043;&#043; \u7a0b\u5e8f\u65f6&#xff0c;C&#043;&#043; \u6269\u5c55\u4f1a\u81ea\u52a8\u5728\u9879\u76ee\u6587\u4ef6\u5939\u4e0b\u7684\u00a0.vscode\u00a0\u5b50\u6587\u4ef6\u5939\u91cc\u521b\u5efa\u8fd9\u4e2a\u00a0tasks.json\u00a0\u6587\u4ef6\u3002<\/p>\n<\/li>\n<li>\n<p>\u5b83\u6709\u4ec0\u4e48\u7528&#xff1f;\u00a0\u5b83\u5b58\u50a8\u4e86\u5982\u4f55\u628a\u4f60\u7684 C&#043;&#043; \u4ee3\u7801\u7f16\u8bd1\u6210\u53ef\u8fd0\u884c\u7a0b\u5e8f\u7684\u5177\u4f53\u6b65\u9aa4\u548c\u8bbe\u7f6e\u3002\u6bcf\u6b21\u4f60\u70b9 VS Code \u7684\u201c\u64ad\u653e\u201d\u6309\u94ae&#xff08;\u8fd0\u884c\/\u8c03\u8bd5&#xff09;\u65f6&#xff0c;VS Code \u5c31\u4f1a\u53bb\u8bfb\u8fd9\u4e2a\u6587\u4ef6&#xff0c;\u6309\u7167\u91cc\u9762\u7684\u6307\u793a\u53bb\u8c03\u7528\u7f16\u8bd1\u5668\u5e72\u6d3b\u3002<\/p>\n<\/li>\n<\/ul>\n<p>{<br \/>\n  &#034;tasks&#034;: [ \/\/ \u8fd9\u91cc\u5b9a\u4e49\u4e86\u4e00\u4e2a\u4efb\u52a1\u5217\u8868<br \/>\n    {<br \/>\n      &#034;type&#034;: &#034;cppbuild&#034;, \/\/ \u4efb\u52a1\u7c7b\u578b&#xff1a;C&#043;&#043;\u7f16\u8bd1\u6784\u5efa<br \/>\n      &#034;label&#034;: &#034;C\/C&#043;&#043;: clang&#043;&#043; build active file&#034;, \/\/ \u4efb\u52a1\u7684\u540d\u5b57&#xff08;\u7ed9\u4f60\u770b\u7684&#xff0c;\u5728\u5217\u8868\u91cc\u663e\u793a&#xff09;<br \/>\n      &#034;command&#034;: &#034;\/usr\/bin\/clang&#043;&#043;&#034;, \/\/ \u8bf7\u54ea\u4f4d\u53a8\u5e08&#xff1f;\u8fd9\u91cc\u8bf7\u7684\u662f clang&#043;&#043; \u7f16\u8bd1\u5668&#xff0c;\u5b83\u5728 \/usr\/bin \u76ee\u5f55\u4e0b<br \/>\n      &#034;args&#034;: [ \/\/ \u7ed9\u53a8\u5e08\u7684\u8be6\u7ec6\u70f9\u996a\u6307\u4ee4&#xff08;\u547d\u4ee4\u884c\u53c2\u6570&#xff09;&#xff1a;<br \/>\n        &#034;-fcolor-diagnostics&#034;, \/\/ \u8ba9\u9519\u8bef\u4fe1\u606f\u5e26\u989c\u8272&#xff08;\u597d\u770b&#xff09;<br \/>\n        &#034;-fansi-escape-codes&#034;, \/\/ \u652f\u6301\u989c\u8272\u663e\u793a\u9700\u8981\u7684\u4ee3\u7801<br \/>\n        &#034;-g&#034;, \/\/ \u91cd\u8981&#xff01;\u52a0\u5165\u8c03\u8bd5\u4fe1\u606f&#xff08;\u8fd9\u6837\u4f60\u624d\u80fd\u7528\u8c03\u8bd5\u5668\u4e00\u6b65\u6b65\u770b\u7a0b\u5e8f&#xff09;<br \/>\n        &#034;${file}&#034;, \/\/ \u7528\u4ec0\u4e48\u98df\u6750&#xff1f;\u5f53\u524d\u4f60\u5728VS Code\u91cc\u6253\u5f00\u7684\u90a3\u4e2a.cpp\u6587\u4ef6<br \/>\n        &#034;-o&#034;, \/\/ \u544a\u8bc9\u53a8\u5e08&#xff1a;\u4e0b\u4e00\u4e2a\u53c2\u6570\u662f\u201c\u505a\u597d\u7684\u83dc\u201d\u653e\u54ea\u3001\u53eb\u5565\u540d<br \/>\n        &#034;${fileDirname}\/${fileBasenameNoExtension}&#034; \/\/ \u505a\u597d\u7684\u83dc\u653e\u54ea&#xff1f;\u653e\u5728\u5f53\u524d\u6253\u5f00\u6587\u4ef6\u6240\u5728\u7684\u6587\u4ef6\u5939\u91cc&#xff0c;\u540d\u5b57\u548c\u5f53\u524d\u6253\u5f00\u7684\u6587\u4ef6\u4e00\u6837&#xff0c;\u4f46\u53bb\u6389.cpp\u540e\u7f00\u3002\u6bd4\u5982\u5f53\u524d\u6253\u5f00 hello.cpp&#xff0c;\u8f93\u51fa\u5c31\u662f hello<br \/>\n      ],<br \/>\n      &#034;options&#034;: {<br \/>\n        &#034;cwd&#034;: &#034;${fileDirname}&#034; \/\/ \u53a8\u5e08\u5728\u54ea\u5de5\u4f5c&#xff1f;\u5728\u5f53\u524d\u6253\u5f00\u6587\u4ef6\u6240\u5728\u7684\u6587\u4ef6\u5939\u91cc\u5f00\u59cb\u5e72\u6d3b<br \/>\n      },<br \/>\n      &#034;problemMatcher&#034;: [&#034;$gcc&#034;], \/\/ \u5982\u679c\u53a8\u5e08&#xff08;\u7f16\u8bd1\u5668&#xff09;\u62a5\u544a\u505a\u83dc\u51fa\u9519&#xff08;\u7f16\u8bd1\u9519\u8bef&#xff09;&#xff0c;\u8ba9\u603b\u7ba1\u80fd\u770b\u61c2\u9519\u8bef\u4fe1\u606f&#xff08;\u7528\u7406\u89e3GCC\/clang\u9519\u8bef\u683c\u5f0f\u7684\u5de5\u5177&#xff09;<br \/>\n      &#034;group&#034;: {<br \/>\n        &#034;kind&#034;: &#034;build&#034;, \/\/ \u8fd9\u4e2a\u4efb\u52a1\u662f\u201c\u6784\u5efa\u201d\u7c7b\u578b\u7684\u4efb\u52a1<br \/>\n        &#034;isDefault&#034;: true \/\/ \u800c\u4e14\u5b83\u662f\u9ed8\u8ba4\u7684\u6784\u5efa\u4efb\u52a1&#xff01;\u975e\u5e38\u91cd\u8981&#xff01;\u8fd9\u610f\u5473\u7740\u4f60\u6309\u201c\u64ad\u653e\u201d\u6309\u94ae\u65f6&#xff0c;\u603b\u7ba1\u5c31\u81ea\u52a8\u7528\u8fd9\u4e2a\u4efb\u52a1<br \/>\n      },<br \/>\n      &#034;detail&#034;: &#034;Task generated by Debugger.&#034; \/\/ \u4efb\u52a1\u7684\u8be6\u7ec6\u63cf\u8ff0&#xff08;\u7ed9\u4f60\u770b\u7684&#xff09;<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;version&#034;: &#034;2.0.0&#034; \/\/ \u8bf4\u660e\u4e66\u7684\u7248\u672c<br \/>\n} <\/p>\n<ul>\n<li>\n<p>${file},\u00a0${fileDirname},\u00a0${fileBasenameNoExtension}&#xff1a;\u00a0\u8fd9\u4e9b\u90fd\u662f VS Code \u7684\u53d8\u91cf&#xff0c;\u4f1a\u81ea\u52a8\u66ff\u6362\u6210\u5b9e\u9645\u503c\u3002\u6bd4\u5982\u4f60\u6253\u5f00\u4e86\u00a0\/Users\/you\/project\/hello.cpp&#xff1a;<\/p>\n<ul>\n<li>\n<p>${file}\u00a0-&gt;\u00a0\/Users\/you\/project\/hello.cpp<\/p>\n<\/li>\n<li>\n<p>${fileDirname}\u00a0-&gt;\u00a0\/Users\/you\/project<\/p>\n<\/li>\n<li>\n<p>${fileBasenameNoExtension}\u00a0-&gt;\u00a0hello<\/p>\n<\/li>\n<\/ul>\n<\/li>\n<li>\n<p>-o\u00a0\u53c2\u6570&#xff1a;\u00a0\u8fd9\u662f\u7f16\u8bd1\u5668\u7528\u6765\u6307\u5b9a\u8f93\u51fa\u6587\u4ef6\u540d\u7684\u5173\u952e\u53c2\u6570\u3002\u5b83\u540e\u9762\u7684\u00a0${fileDirname}\/${fileBasenameNoExtension}\u00a0\u7ec4\u5408\u8d77\u6765\u5c31\u662f\u8f93\u51fa\u8def\u5f84\u00a0\/Users\/you\/project\/hello\u3002<\/p>\n<\/li>\n<li>\n<p>group\u00a0\u91cc\u7684\u00a0&#034;isDefault&#034;: true&#xff1a;\u00a0\u8fd9\u662f\u6700\u5173\u952e\u7684\u8bbe\u7f6e\u4e4b\u4e00&#xff01;\u5b83\u544a\u8bc9 VS Code&#xff1a;\u201c\u8fd9\u4e2a\u4efb\u52a1\u5c31\u662f\u5f53\u6211\u6309\u4e0b\u90a3\u4e2a\u2018\u64ad\u653e\u2019\u6309\u94ae\u65f6&#xff0c;\u4f60\u5e94\u8be5\u81ea\u52a8\u53bb\u6267\u884c\u7684\u90a3\u4e2a\u9ed8\u8ba4\u7f16\u8bd1\u4efb\u52a1\u201d\u3002\u6ca1\u6709\u8fd9\u4e2a&#xff0c;\u64ad\u653e\u6309\u94ae\u53ef\u80fd\u4e0d\u77e5\u9053\u8be5\u5e72\u4ec0\u4e48\u3002<\/p>\n<\/li>\n<li>\n<p>\u64ad\u653e\u6309\u94ae\u4f9d\u8d56\u5b83&#xff1a;\u00a0\u4e00\u65e6\u914d\u7f6e\u597d\u00a0tasks.json\u00a0(\u5c24\u5176\u662f\u90a3\u4e2a\u9ed8\u8ba4\u4efb\u52a1)&#xff0c;\u4ee5\u540e\u4f60\u5199\u4ee3\u7801&#xff0c;\u60f3\u8fd0\u884c\u65f6&#xff0c;\u76f4\u63a5\u70b9\u64ad\u653e\u6309\u94ae\u5c31\u884c\u3002VS Code \u4f1a\u81ea\u52a8\u6309\u7167\u00a0tasks.json\u00a0\u91cc\u7684\u6307\u793a\u53bb\u7f16\u8bd1\u4f60\u7684\u4ee3\u7801&#xff0c;\u7136\u540e\u8fd0\u884c\u751f\u6210\u7684\u90a3\u4e2a\u7a0b\u5e8f (hello)\u3002<\/p>\n<\/li>\n<\/ul>\n<p><span style=\"color:#fe2c24\">\u4ee5\u4e0a\u8fd9\u90fd\u662f\u57fa\u4e8evs code\u5b98\u65b9\u6587\u4ef6\u6765\u5199\u7684&#xff0c;\u5176\u5b9e\u6211\u4eec\u53ea\u9700\u8981\u628a\u5185\u5bb9\u6539\u6210\u8fd9\u4e2a\u5c31\u884c&#xff08;\u6ca1\u6709g\u7684\u6539\u6210clang&#xff0c;\u4e0d\u4f1a\u7684\u53ef\u4ee5\u76f4\u63a5\u4e22\u7ed9AI&#xff09;&#xff1a;<\/span><\/p>\n<p>{<br \/>\n  &#034;tasks&#034;: [<br \/>\n    {<br \/>\n      &#034;type&#034;: &#034;cppbuild&#034;,<br \/>\n      &#034;label&#034;: &#034;C\/C&#043;&#043;: g&#043;&#043; \u751f\u6210\u6d3b\u52a8\u6587\u4ef6&#034;,<br \/>\n      &#034;command&#034;: &#034;\/usr\/bin\/g&#043;&#043;&#034;,<br \/>\n      &#034;args&#034;: [<br \/>\n        &#034;-fcolor-diagnostics&#034;,      \/\/ \u542f\u7528\u989c\u8272\u8bca\u65ad\u4fe1\u606f<br \/>\n        &#034;-fansi-escape-codes&#034;,      \/\/ \u542f\u7528ANSI\u8f6c\u4e49\u7801<br \/>\n        &#034;-std&#061;c&#043;&#043;17&#034;,               \/\/ \u4f7f\u7528C&#043;&#043;17\u6807\u51c6<br \/>\n        &#034;-Wall&#034;,                    \/\/ \u542f\u7528\u6240\u6709\u8b66\u544a<br \/>\n        &#034;-Wextra&#034;,                  \/\/ \u542f\u7528\u989d\u5916\u7684\u8b66\u544a<br \/>\n        &#034;-Wpedantic&#034;,               \/\/ \u542f\u7528\u4e0e\u6807\u51c6C&#043;&#043;\u4e00\u81f4\u7684\u8b66\u544a<br \/>\n        &#034;-g&#034;,                       \/\/ \u542f\u7528\u8c03\u8bd5\u4fe1\u606f<br \/>\n        &#034;${fileDirname}\/*.cpp&#034;,      \/\/ \u7f16\u8bd1\u5f53\u524d\u76ee\u5f55\u4e0b\u7684\u6240\u6709 .cc \u6587\u4ef6<br \/>\n        &#034;-o&#034;,                       \/\/ \u6307\u5b9a\u8f93\u51fa\u6587\u4ef6<br \/>\n        &#034;${fileDirname}\/result.exe&#034; \/\/ \u8f93\u51fa\u53ef\u6267\u884c\u6587\u4ef6\u5230\u5f53\u524d\u76ee\u5f55\u4e0b\u7684result.exe<br \/>\n      ],<br \/>\n      &#034;options&#034;: {<br \/>\n        &#034;cwd&#034;: &#034;${fileDirname}&#034;     \/\/ \u8bbe\u7f6e\u5de5\u4f5c\u76ee\u5f55\u4e3a\u5f53\u524d\u6587\u4ef6\u6240\u5728\u7684\u76ee\u5f55<br \/>\n      },<br \/>\n      &#034;problemMatcher&#034;: [&#034;$gcc&#034;],<br \/>\n      &#034;group&#034;: {<br \/>\n        &#034;kind&#034;: &#034;build&#034;,<br \/>\n        &#034;isDefault&#034;: true<br \/>\n      },<br \/>\n      &#034;detail&#034;: &#034;\u8c03\u8bd5\u5668\u751f\u6210\u7684\u4efb\u52a1: g&#043;&#043; &#034;<br \/>\n    }<br \/>\n  ],<br \/>\n  &#034;version&#034;: &#034;2.0.0&#034;<br \/>\n}<\/p>\n<p>\u5982\u679c\u5927\u5bb6\u5199\u4e86c\u6587\u4ef6\u6216\u8005cc\u6587\u4ef6&#xff0c;\u628a\u00a0&#034;${fileDirname}\/*.cpp&#034;\u6539\u6210\u00a0&#034;${fileDirname}\/*.c&#034;\u6216\u00a0&#034;${fileDirname}\/*.cc&#034;<\/p>\n<\/p>\n<h2>\u4e94\u3001\u8c03\u8bd5<\/h2>\n<p>\u8c03\u8bd5\u7684\u5feb\u6377\u952e\u548cVS\u7cfb\u5217\u7684IDE\u662f\u4e00\u6837\u7684&#xff0c;\u5982&#xff1a;<\/p>\n<p><span style=\"color:#fe2c24\">F9 &#8211; \u6253\u65ad\u70b9\/\u53d6\u6d88\u65ad\u70b9<\/span><\/p>\n<p><span style=\"color:#fe2c24\">F5 &#8211; \u542f\u52a8\u8c03\u8bd5<\/span><\/p>\n<p><span style=\"color:#fe2c24\">F11 &#8211; \u9010\u8bed\u53e5\u8c03\u8bd5<\/span><\/p>\n<p><span style=\"color:#fe2c24\">F10 &#8211; \u9010\u8fc7\u7a0b\u8c03\u8bd5<\/span><\/p>\n<\/p>\n<p><span style=\"color:#0d0016\">VS\u8c03\u8bd5\u6280\u5de7&#xff1a;<\/span><\/p>\n<p>https:\/\/www.bilibili.com\/video\/BV1oi4y1g7CF\/?p&#061;28<\/p>\n<p>https:\/\/www.bilibili.com\/video\/BV1oi4y1g7CF\/?p&#061;29<\/p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u8de8\u5e73\u53f0\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7cfb\u7edf\u3002\u5b83\u7ed3\u5408\u4e86\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\u7684\u5feb\u901f\u542f\u52a8\u4e0e\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\u3002\u800c\u5728\u5927\u5bb6\u521d\u5b66\u9636\u6bb5\u5b66\u6821\u6216\u8005\u54ea\u4e9b\u673a\u6784\u4f1a\u63a8\u4e24\u79cd\u7f16\u8f91\u5668\uff1aDEV c++\u6216\u8005vs 2022\uff0c\u4f46\u662f\u5982\u679c\u662fmac\u7528\u6237\u7684\u8bdd\u5c31\u65e0\u6cd5\u4f7f\u7528\u8fd9\u4e24\u4e2aIDE\uff0c\u90a3\u4e48\u5927\u5bb6\u5c31\u53ef\u4ee5\u9009\u62e9vs code\u9996\u5148\u5927\u5bb6\u770b\u5230\u6700\u5de6\u8fb9\u8fd9\u4e00\u680f\uff0c\u4f1a\u6709\u51e0\u4e2a\u56fe\u6807\uff0c\u7b2c\u4e00\u4e2a\u5c31\u662f\u6211\u4eec\u7684\u6587\u4ef6\u65b9\u9762\u7684\uff0c\u7b2c\u4e8c\u4e2a\u662f\u641c\u7d22\uff1b\u7b2c\u4e09\u4e2a\u662f\u6211\u4eecgit\u7684\u4e00\u4e2a\u7ba1\u7406\uff1b_devc++ mac<\/p>\n","protected":false},"author":2,"featured_media":50676,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[547,330],"topic":[],"class_list":["post-50696","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-server","tag-mac","tag-macos"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v20.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \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\/50696.html\" \/>\n<meta property=\"og:locale\" content=\"zh_CN\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"og:description\" content=\"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u8de8\u5e73\u53f0\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7cfb\u7edf\u3002\u5b83\u7ed3\u5408\u4e86\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\u7684\u5feb\u901f\u542f\u52a8\u4e0e\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\u3002\u800c\u5728\u5927\u5bb6\u521d\u5b66\u9636\u6bb5\u5b66\u6821\u6216\u8005\u54ea\u4e9b\u673a\u6784\u4f1a\u63a8\u4e24\u79cd\u7f16\u8f91\u5668\uff1aDEV c++\u6216\u8005vs 2022\uff0c\u4f46\u662f\u5982\u679c\u662fmac\u7528\u6237\u7684\u8bdd\u5c31\u65e0\u6cd5\u4f7f\u7528\u8fd9\u4e24\u4e2aIDE\uff0c\u90a3\u4e48\u5927\u5bb6\u5c31\u53ef\u4ee5\u9009\u62e9vs code\u9996\u5148\u5927\u5bb6\u770b\u5230\u6700\u5de6\u8fb9\u8fd9\u4e00\u680f\uff0c\u4f1a\u6709\u51e0\u4e2a\u56fe\u6807\uff0c\u7b2c\u4e00\u4e2a\u5c31\u662f\u6211\u4eec\u7684\u6587\u4ef6\u65b9\u9762\u7684\uff0c\u7b2c\u4e8c\u4e2a\u662f\u641c\u7d22\uff1b\u7b2c\u4e09\u4e2a\u662f\u6211\u4eecgit\u7684\u4e00\u4e2a\u7ba1\u7406\uff1b_devc++ mac\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.wsisp.com\/helps\/50696.html\" \/>\n<meta property=\"og:site_name\" content=\"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\" \/>\n<meta property=\"article:published_time\" content=\"2025-08-10T03:38:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033829-689814357f26d.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=\"3 \u5206\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50696.html\",\"url\":\"https:\/\/www.wsisp.com\/helps\/50696.html\",\"name\":\"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3\",\"isPartOf\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#website\"},\"datePublished\":\"2025-08-10T03:38:55+00:00\",\"dateModified\":\"2025-08-10T03:38:55+00:00\",\"author\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41\"},\"breadcrumb\":{\"@id\":\"https:\/\/www.wsisp.com\/helps\/50696.html#breadcrumb\"},\"inLanguage\":\"zh-Hans\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.wsisp.com\/helps\/50696.html\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/www.wsisp.com\/helps\/50696.html#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"\u9996\u9875\",\"item\":\"https:\/\/www.wsisp.com\/helps\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09\"}]},{\"@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":"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \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\/50696.html","og_locale":"zh_CN","og_type":"article","og_title":"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","og_description":"\u6587\u7ae0\u6d4f\u89c8\u9605\u8bfb1.1k\u6b21\uff0c\u70b9\u8d5e8\u6b21\uff0c\u6536\u85cf17\u6b21\u3002\u662f\u5fae\u8f6f\u5f00\u53d1\u7684\u4e00\u6b3e\u514d\u8d39\u3001\u5f00\u6e90\u4e14\u8de8\u5e73\u53f0\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u9002\u7528\u4e8e Windows\u3001macOS \u548c Linux \u7cfb\u7edf\u3002\u5b83\u7ed3\u5408\u4e86\u8f7b\u91cf\u7ea7\u7f16\u8f91\u5668\u7684\u5feb\u901f\u542f\u52a8\u4e0e\u96c6\u6210\u5f00\u53d1\u73af\u5883\uff08IDE\uff09\u7684\u5f3a\u5927\u529f\u80fd\uff0c\u6210\u4e3a\u5168\u7403\u5f00\u53d1\u8005\u6700\u5e38\u7528\u7684\u5de5\u5177\u4e4b\u4e00\u3002\u800c\u5728\u5927\u5bb6\u521d\u5b66\u9636\u6bb5\u5b66\u6821\u6216\u8005\u54ea\u4e9b\u673a\u6784\u4f1a\u63a8\u4e24\u79cd\u7f16\u8f91\u5668\uff1aDEV c++\u6216\u8005vs 2022\uff0c\u4f46\u662f\u5982\u679c\u662fmac\u7528\u6237\u7684\u8bdd\u5c31\u65e0\u6cd5\u4f7f\u7528\u8fd9\u4e24\u4e2aIDE\uff0c\u90a3\u4e48\u5927\u5bb6\u5c31\u53ef\u4ee5\u9009\u62e9vs code\u9996\u5148\u5927\u5bb6\u770b\u5230\u6700\u5de6\u8fb9\u8fd9\u4e00\u680f\uff0c\u4f1a\u6709\u51e0\u4e2a\u56fe\u6807\uff0c\u7b2c\u4e00\u4e2a\u5c31\u662f\u6211\u4eec\u7684\u6587\u4ef6\u65b9\u9762\u7684\uff0c\u7b2c\u4e8c\u4e2a\u662f\u641c\u7d22\uff1b\u7b2c\u4e09\u4e2a\u662f\u6211\u4eecgit\u7684\u4e00\u4e2a\u7ba1\u7406\uff1b_devc++ mac","og_url":"https:\/\/www.wsisp.com\/helps\/50696.html","og_site_name":"\u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","article_published_time":"2025-08-10T03:38:55+00:00","og_image":[{"url":"https:\/\/www.wsisp.com\/helps\/wp-content\/uploads\/2025\/08\/20250810033829-689814357f26d.png"}],"author":"admin","twitter_card":"summary_large_image","twitter_misc":{"\u4f5c\u8005":"admin","\u9884\u8ba1\u9605\u8bfb\u65f6\u95f4":"3 \u5206"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.wsisp.com\/helps\/50696.html","url":"https:\/\/www.wsisp.com\/helps\/50696.html","name":"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09 - \u7f51\u7855\u4e92\u8054\u5e2e\u52a9\u4e2d\u5fc3","isPartOf":{"@id":"https:\/\/www.wsisp.com\/helps\/#website"},"datePublished":"2025-08-10T03:38:55+00:00","dateModified":"2025-08-10T03:38:55+00:00","author":{"@id":"https:\/\/www.wsisp.com\/helps\/#\/schema\/person\/358e386c577a3ab51c4493330a20ad41"},"breadcrumb":{"@id":"https:\/\/www.wsisp.com\/helps\/50696.html#breadcrumb"},"inLanguage":"zh-Hans","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.wsisp.com\/helps\/50696.html"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.wsisp.com\/helps\/50696.html#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"\u9996\u9875","item":"https:\/\/www.wsisp.com\/helps"},{"@type":"ListItem","position":2,"name":"mac\u7535\u8111\u642d\u8f7dc\u3001c++\u73af\u5883\uff08\u57fa\u4e8evs code\uff09"}]},{"@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\/50696","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=50696"}],"version-history":[{"count":0,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/posts\/50696\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media\/50676"}],"wp:attachment":[{"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/media?parent=50696"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/categories?post=50696"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/tags?post=50696"},{"taxonomy":"topic","embeddable":true,"href":"https:\/\/www.wsisp.com\/helps\/wp-json\/wp\/v2\/topic?post=50696"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}