{"id":21603,"date":"2024-11-19T11:54:12","date_gmt":"2024-11-19T03:54:12","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21603\/"},"modified":"2024-11-19T11:54:12","modified_gmt":"2024-11-19T03:54:12","slug":"vscode%e5%a6%82%e4%bd%95%e8%bf%90%e8%a1%8c%e4%bb%a3%e7%a0%81","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21603\/","title":{"rendered":"vscode\u5982\u4f55\u8fd0\u884c\u4ee3\u7801"},"content":{"rendered":"<blockquote><p>\n  visual studio code \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + f5\uff1bmacos\uff1acmd + f5\uff09\u4f7f\u7528\u83dc\u5355\u680f\uff08\u8f6c\u5230\u201c\u8fd0\u884c\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u8fd0\u884c\u9009\u4e2d\u7684\u4ee3\u7801\u201d\u6216\u201c\u8fd0\u884c\u542f\u52a8\u6587\u4ef6\u201d\uff09\u4f7f\u7528\u547d\u4ee4\u9762\u677f\uff08\u6309 ctrl + shift + p\uff08windows\/linux\uff09\u6216 cmd + shift + p\uff08macos\uff09\uff0c\u8f93\u5165\u201crun code\u201d\u6216\u201cdebug code\u201d\uff09\u4f7f\u7528\u6269\u5c55\uff08\u5b89\u88c5\u6269\u5c55\uff0c\u5982 python \u6269\u5c55\uff09\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202406\/07\/2024060706391687340.jpg\" class=\"aligncenter\" title=\"vscode\u5982\u4f55\u8fd0\u884c\u4ee3\u7801\u63d2\u56fe\" alt=\"vscode\u5982\u4f55\u8fd0\u884c\u4ee3\u7801\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 Visual Studio Code \u4e2d\u8fd0\u884c\u4ee3\u7801<\/strong><\/p>\n<p>Visual Studio Code\uff08\u7b80\u79f0 VSCode\uff09\u662f\u4e00\u6b3e\u6d41\u884c\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u5f0f\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\u548c\u73af\u5883\u3002<\/p>\n<p><strong>1. \u4f7f\u7528\u5feb\u6377\u952e<\/strong><\/p>\n<p>\u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5feb\u6377\u952e\uff1a<\/p>\n<ul>\n<li>Windows\/Linux\uff1aCtrl + F5<\/li>\n<li>macOS\uff1aCmd + F5<\/li>\n<\/ul>\n<p>\u6b64\u5feb\u6377\u952e\u5c06\u5728\u9ed8\u8ba4\u7ec8\u7aef\u4e2d\u8fd0\u884c\u5f53\u524d\u6d3b\u52a8\u6587\u4ef6\u3002<\/p>\n<p><strong>2. \u4f7f\u7528\u83dc\u5355\u680f<\/strong><\/p>\n<p>\u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u83dc\u5355\u680f\u9009\u9879\uff1a<\/p>\n<ol>\n<li>\u8f6c\u5230\u201c\u8fd0\u884c\u201d\u83dc\u5355\u3002<\/li>\n<li>\u9009\u62e9\u201c\u8fd0\u884c\u9009\u4e2d\u7684\u4ee3\u7801\u201d\u6216\u201c\u8fd0\u884c\u542f\u52a8\u6587\u4ef6\u201d\u3002<\/li>\n<\/ol>\n<p>\u7b2c\u4e00\u4e2a\u9009\u9879\u5c06\u8fd0\u884c\u9009\u5b9a\u7684\u4ee3\u7801\uff0c\u800c\u7b2c\u4e8c\u4e2a\u9009\u9879\u5c06\u8fd0\u884c\u5b9a\u4e49\u4e3a\u542f\u52a8\u6587\u4ef6\u7684\u4ee3\u7801\u3002<\/p>\n<p><strong>3. \u4f7f\u7528\u547d\u4ee4\u9762\u677f<\/strong><\/p>\n<p>\u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u9762\u677f\u8fd0\u884c\u4ee3\u7801\uff1a<\/p>\n<ol>\n<li>\u6309 Ctrl + Shift + P\uff08Windows\/Linux\uff09\u6216 Cmd + Shift + P\uff08macOS\uff09\u3002<\/li>\n<li>\u8f93\u5165\u201cRun Code\u201d\u6216\u201cDebug Code\u201d\u3002<\/li>\n<li>\u9009\u62e9\u76f8\u5e94\u7684\u9009\u9879\u3002<\/li>\n<\/ol>\n<p><strong>4. \u4f7f\u7528\u6269\u5c55<\/strong><\/p>\n<p>\u53ef\u4ee5\u901a\u8fc7\u5b89\u88c5\u6269\u5c55\u6765\u6dfb\u52a0\u5176\u4ed6\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u5f0f\u3002\u4f8b\u5982\uff0c\u5bf9\u4e8e Python\uff0c\u60a8\u53ef\u4ee5\u5b89\u88c5 Python \u6269\u5c55\uff0c\u5b83\u63d0\u4f9b\u4e86\u4e00\u4e2a\u65b9\u4fbf\u7684\u8c03\u8bd5\u5668\u548c\u8fd0\u884c\u73af\u5883\u3002<\/p>\n<p><strong>\u5176\u4ed6\u6ce8\u610f\u4e8b\u9879\uff1a<\/strong><\/p>\n<ul>\n<li>\u786e\u4fdd\u5df2\u6b63\u786e\u914d\u7f6e\u60a8\u7684\u7f16\u8bd1\u5668\u548c\u89e3\u91ca\u5668\u3002<\/li>\n<li>\u5bf9\u4e8e\u67d0\u4e9b\u8bed\u8a00\uff0c\u4f8b\u5982 C++\uff0c\u60a8\u53ef\u80fd\u9700\u8981\u6307\u5b9a\u5176\u4ed6\u547d\u4ee4\u884c\u53c2\u6570\u3002<\/li>\n<li>\u5982\u679c\u9047\u5230\u4efb\u4f55\u9519\u8bef\uff0c\u8bf7\u68c0\u67e5\u60a8\u7684\u4ee3\u7801\u662f\u5426\u5b58\u5728\u8bed\u6cd5\u6216\u903b\u8f91\u9519\u8bef\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5982\u4f55\u8fd0\u884c\u4ee3\u7801\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/p>\n","protected":false},"excerpt":{"rendered":"<p>visual studio code \u4e2d\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u6cd5\u6709\u4ee5\u4e0b\u51e0\u79cd\uff1a\u4f7f\u7528\u5feb\u6377\u952e\uff08windows\/linux\uff1actrl + f5\uff1bmacos\uff1acmd + f5\uff09\u4f7f\u7528\u83dc\u5355\u680f\uff08\u8f6c\u5230\u201c\u8fd0\u884c\u201d\u83dc\u5355\uff0c\u9009\u62e9\u201c\u8fd0\u884c\u9009\u4e2d\u7684\u4ee3\u7801\u201d\u6216\u201c\u8fd0\u884c\u542f\u52a8\u6587\u4ef6\u201d\uff09\u4f7f\u7528\u547d\u4ee4\u9762\u677f\uff08\u6309 ctrl + shift + p\uff08windows\/linux\uff09\u6216 cmd + shift + p\uff08macos\uff09\uff0c\u8f93\u5165\u201crun code\u201d\u6216\u201cdebug code\u201d\uff09\u4f7f\u7528\u6269\u5c55\uff08\u5b89\u88c5\u6269\u5c55\uff0c\u5982 python \u6269\u5c55\uff09 \u5982\u4f55\u5728 Visual Studio Code \u4e2d\u8fd0\u884c\u4ee3\u7801 Visual Studio Code\uff08\u7b80\u79f0 VSCode\uff09\u662f\u4e00\u6b3e\u6d41\u884c\u4e14\u529f\u80fd\u5f3a\u5927\u7684\u4ee3\u7801\u7f16\u8f91\u5668\uff0c\u5b83\u63d0\u4f9b\u4e86\u591a\u79cd\u8fd0\u884c\u4ee3\u7801\u7684\u65b9\u5f0f\uff0c\u5177\u4f53\u53d6\u51b3\u4e8e\u6240\u4f7f\u7528\u7684\u7f16\u7a0b\u8bed\u8a00\u548c\u73af\u5883\u3002 1. \u4f7f\u7528\u5feb\u6377\u952e \u6700\u5e38\u7528\u7684\u65b9\u6cd5\u662f\u4f7f\u7528\u5feb\u6377\u952e\uff1a Windows\/Linux\uff1aCtrl + F5 macOS\uff1aCmd + F5 \u6b64\u5feb\u6377\u952e\u5c06\u5728\u9ed8\u8ba4\u7ec8\u7aef\u4e2d\u8fd0\u884c\u5f53\u524d\u6d3b\u52a8\u6587\u4ef6\u3002 2. \u4f7f\u7528\u83dc\u5355\u680f \u60a8\u8fd8\u53ef\u4ee5\u4f7f\u7528\u83dc\u5355\u680f\u9009\u9879\uff1a \u8f6c\u5230\u201c\u8fd0\u884c\u201d\u83dc\u5355\u3002 \u9009\u62e9\u201c\u8fd0\u884c\u9009\u4e2d\u7684\u4ee3\u7801\u201d\u6216\u201c\u8fd0\u884c\u542f\u52a8\u6587\u4ef6\u201d\u3002 \u7b2c\u4e00\u4e2a\u9009\u9879\u5c06\u8fd0\u884c\u9009\u5b9a\u7684\u4ee3\u7801\uff0c\u800c\u7b2c\u4e8c\u4e2a\u9009\u9879\u5c06\u8fd0\u884c\u5b9a\u4e49\u4e3a\u542f\u52a8\u6587\u4ef6\u7684\u4ee3\u7801\u3002 3. \u4f7f\u7528\u547d\u4ee4\u9762\u677f \u4e5f\u53ef\u4ee5\u4f7f\u7528\u547d\u4ee4\u9762\u677f\u8fd0\u884c\u4ee3\u7801\uff1a \u6309 Ctrl + Shift + [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[16],"tags":[],"class_list":["post-21603","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21603","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/comments?post=21603"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21603\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21603"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21603"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21603"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}