{"id":21352,"date":"2024-11-19T14:11:35","date_gmt":"2024-11-19T06:11:35","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21352\/"},"modified":"2024-11-19T14:11:35","modified_gmt":"2024-11-19T06:11:35","slug":"vscode%e6%80%8e%e4%b9%88%e8%b0%83%e5%87%ba%e6%8e%a7%e5%88%b6%e5%8f%b0","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21352\/","title":{"rendered":"vscode\u600e\u4e48\u8c03\u51fa\u63a7\u5236\u53f0"},"content":{"rendered":"<blockquote><p>\n  vscode \u4e2d\u53ef\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8c03\u51fa\u63a7\u5236\u53f0\uff1a\u6253\u5f00\u547d\u4ee4\u9762\u677f\u5e76\u8fd0\u884c toggle developer tools \u6216 debug console\uff1b\u67e5\u770b\u63a7\u5236\u53f0\uff0c\u5176\u5c06\u51fa\u73b0\u5728\u7a97\u53e3\u5e95\u90e8\u4f5c\u4e3a\u65b0\u9009\u9879\u5361\u3002\u63a7\u5236\u53f0\u63d0\u4f9b\u591a\u79cd\u529f\u80fd\uff0c\u5305\u62ec\uff1a\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u8f93\u51fa\uff1b\u8fd0\u884c javascript \u4ee3\u7801\uff1b\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff1b\u7ba1\u7406\u6269\u5c55\u3002\u6b64\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u5206\u5c4f\u63a7\u5236\u53f0\u3001\u6e05\u9664\u5176\u5185\u5bb9\u5e76\u81ea\u5b9a\u4e49\u5176\u5916\u89c2\u548c\u884c\u4e3a\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052711331969205.jpg\" class=\"aligncenter\" title=\"vscode\u600e\u4e48\u8c03\u51fa\u63a7\u5236\u53f0\u63d2\u56fe\" alt=\"vscode\u600e\u4e48\u8c03\u51fa\u63a7\u5236\u53f0\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u8c03\u51fa\u63a7\u5236\u53f0<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\u8c03\u51fa\u63a7\u5236\u53f0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u4e09\u4e2a\u6b65\u9aa4\uff1a<\/p>\n<ol>\n<li> <strong>\u6253\u5f00\u547d\u4ee4\u9762\u677f<\/strong>\uff1a\u6309 Ctrl+Shift+P\uff08Windows\/Linux\uff09\u6216 Cmd+Shift+P\uff08macOS\uff09\u3002<\/li>\n<li> <strong>\u8fd0\u884c\u547d\u4ee4<\/strong>\uff1a\u952e\u5165 Toggle Developer Tools \u6216 Debug Console\uff0c\u7136\u540e\u9009\u62e9\u76f8\u5e94\u7684\u9009\u9879\u3002<\/li>\n<li> <strong>\u67e5\u770b\u63a7\u5236\u53f0<\/strong>\uff1a\u63a7\u5236\u53f0\u5c06\u51fa\u73b0\u5728 VSCode \u7a97\u53e3\u7684\u5e95\u90e8\uff0c\u4f5c\u4e3a\u65b0\u9009\u9879\u5361\u3002<\/li>\n<\/ol>\n<p><strong>\u63a7\u5236\u53f0\u529f\u80fd<\/strong><\/p>\n<p>VSCode \u63a7\u5236\u53f0\u63d0\u4f9b\u4e86\u591a\u79cd\u6709\u7528\u7684\u529f\u80fd\uff0c\u5305\u62ec\uff1a<\/p>\n<ul>\n<li> <strong>\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u8f93\u51fa<\/strong>\uff1a\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5c06\u6d88\u606f\u548c\u9519\u8bef\u8bb0\u5f55\u5230\u63a7\u5236\u53f0\uff0c\u4fbf\u4e8e\u8c03\u8bd5\u3002<\/li>\n<li> <strong>\u8fd0\u884c JavaScript \u4ee3\u7801<\/strong>\uff1a\u53ef\u4ee5\u5728\u63a7\u5236\u53f0\u4e2d\u8fd0\u884c JavaScript \u4ee3\u7801\uff0c\u7528\u4e8e\u6d4b\u8bd5\u4ee3\u7801\u6bb5\u6216\u63a2\u7d22 JavaScript \u5bf9\u8c61\u3002<\/li>\n<li> <strong>\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f<\/strong>\uff1a\u63a7\u5236\u53f0\u53ef\u7528\u4e8e\u8bbe\u7f6e\u65ad\u70b9\u3001\u68c0\u67e5\u53d8\u91cf\u548c\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\u3002<\/li>\n<li> <strong>\u7ba1\u7406\u6269\u5c55<\/strong>\uff1a\u63a7\u5236\u53f0\u53ef\u4ee5\u663e\u793a\u5df2\u5b89\u88c5\u7684\u6269\u5c55\u5217\u8868\uff0c\u5e76\u63d0\u4f9b\u5b89\u88c5\u6216\u5378\u8f7d\u6269\u5c55\u7684\u9009\u9879\u3002<\/li>\n<\/ul>\n<p><strong>\u5176\u4ed6\u63d0\u793a<\/strong><\/p>\n<ul>\n<li> <strong>\u5206\u5c4f\u63a7\u5236\u53f0<\/strong>\uff1a\u6309 Ctrl+J\uff08Windows\/Linux\uff09\u6216 Cmd+J\uff08macOS\uff09\u53ef\u4ee5\u5728 VSCode \u7a97\u53e3\u4e2d\u5206\u5c4f\u63a7\u5236\u53f0\u3002<\/li>\n<li> <strong>\u6e05\u9664\u63a7\u5236\u53f0<\/strong>\uff1a\u6309 Ctrl+K+X\uff08Windows\/Linux\uff09\u6216 Cmd+K+X\uff08macOS\uff09\u53ef\u4ee5\u6e05\u9664\u63a7\u5236\u53f0\u7684\u5185\u5bb9\u3002<\/li>\n<li> <strong>\u81ea\u5b9a\u4e49\u63a7\u5236\u53f0<\/strong>\uff1a\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u7528\u6237\u8bbe\u7f6e\u6765\u81ea\u5b9a\u4e49\u63a7\u5236\u53f0\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8c03\u51fa\u63a7\u5236\u53f0\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>vscode \u4e2d\u53ef\u901a\u8fc7\u4ee5\u4e0b\u6b65\u9aa4\u8c03\u51fa\u63a7\u5236\u53f0\uff1a\u6253\u5f00\u547d\u4ee4\u9762\u677f\u5e76\u8fd0\u884c toggle developer tools \u6216 debug console\uff1b\u67e5\u770b\u63a7\u5236\u53f0\uff0c\u5176\u5c06\u51fa\u73b0\u5728\u7a97\u53e3\u5e95\u90e8\u4f5c\u4e3a\u65b0\u9009\u9879\u5361\u3002\u63a7\u5236\u53f0\u63d0\u4f9b\u591a\u79cd\u529f\u80fd\uff0c\u5305\u62ec\uff1a\u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u8f93\u51fa\uff1b\u8fd0\u884c javascript \u4ee3\u7801\uff1b\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff1b\u7ba1\u7406\u6269\u5c55\u3002\u6b64\u5916\uff0c\u7528\u6237\u8fd8\u53ef\u4ee5\u5206\u5c4f\u63a7\u5236\u53f0\u3001\u6e05\u9664\u5176\u5185\u5bb9\u5e76\u81ea\u5b9a\u4e49\u5176\u5916\u89c2\u548c\u884c\u4e3a\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u8c03\u51fa\u63a7\u5236\u53f0 \u5728 VSCode \u4e2d\u8c03\u51fa\u63a7\u5236\u53f0\u975e\u5e38\u7b80\u5355\uff0c\u53ea\u9700\u4e09\u4e2a\u6b65\u9aa4\uff1a \u6253\u5f00\u547d\u4ee4\u9762\u677f\uff1a\u6309 Ctrl+Shift+P\uff08Windows\/Linux\uff09\u6216 Cmd+Shift+P\uff08macOS\uff09\u3002 \u8fd0\u884c\u547d\u4ee4\uff1a\u952e\u5165 Toggle Developer Tools \u6216 Debug Console\uff0c\u7136\u540e\u9009\u62e9\u76f8\u5e94\u7684\u9009\u9879\u3002 \u67e5\u770b\u63a7\u5236\u53f0\uff1a\u63a7\u5236\u53f0\u5c06\u51fa\u73b0\u5728 VSCode \u7a97\u53e3\u7684\u5e95\u90e8\uff0c\u4f5c\u4e3a\u65b0\u9009\u9879\u5361\u3002 \u63a7\u5236\u53f0\u529f\u80fd VSCode \u63a7\u5236\u53f0\u63d0\u4f9b\u4e86\u591a\u79cd\u6709\u7528\u7684\u529f\u80fd\uff0c\u5305\u62ec\uff1a \u67e5\u770b\u5e94\u7528\u7a0b\u5e8f\u8f93\u51fa\uff1a\u5e94\u7528\u7a0b\u5e8f\u53ef\u4ee5\u5c06\u6d88\u606f\u548c\u9519\u8bef\u8bb0\u5f55\u5230\u63a7\u5236\u53f0\uff0c\u4fbf\u4e8e\u8c03\u8bd5\u3002 \u8fd0\u884c JavaScript \u4ee3\u7801\uff1a\u53ef\u4ee5\u5728\u63a7\u5236\u53f0\u4e2d\u8fd0\u884c JavaScript \u4ee3\u7801\uff0c\u7528\u4e8e\u6d4b\u8bd5\u4ee3\u7801\u6bb5\u6216\u63a2\u7d22 JavaScript \u5bf9\u8c61\u3002 \u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\uff1a\u63a7\u5236\u53f0\u53ef\u7528\u4e8e\u8bbe\u7f6e\u65ad\u70b9\u3001\u68c0\u67e5\u53d8\u91cf\u548c\u8c03\u8bd5\u5e94\u7528\u7a0b\u5e8f\u3002 \u7ba1\u7406\u6269\u5c55\uff1a\u63a7\u5236\u53f0\u53ef\u4ee5\u663e\u793a\u5df2\u5b89\u88c5\u7684\u6269\u5c55\u5217\u8868\uff0c\u5e76\u63d0\u4f9b\u5b89\u88c5\u6216\u5378\u8f7d\u6269\u5c55\u7684\u9009\u9879\u3002 \u5176\u4ed6\u63d0\u793a \u5206\u5c4f\u63a7\u5236\u53f0\uff1a\u6309 Ctrl+J\uff08Windows\/Linux\uff09\u6216 Cmd+J\uff08macOS\uff09\u53ef\u4ee5\u5728 VSCode \u7a97\u53e3\u4e2d\u5206\u5c4f\u63a7\u5236\u53f0\u3002 \u6e05\u9664\u63a7\u5236\u53f0\uff1a\u6309 Ctrl+K+X\uff08Windows\/Linux\uff09\u6216 Cmd+K+X\uff08macOS\uff09\u53ef\u4ee5\u6e05\u9664\u63a7\u5236\u53f0\u7684\u5185\u5bb9\u3002 \u81ea\u5b9a\u4e49\u63a7\u5236\u53f0\uff1a\u53ef\u4ee5\u901a\u8fc7\u4fee\u6539\u7528\u6237\u8bbe\u7f6e\u6765\u81ea\u5b9a\u4e49\u63a7\u5236\u53f0\u7684\u5916\u89c2\u548c\u884c\u4e3a\u3002 \u4ee5\u4e0a\u5c31\u662f\u600e\u4e48\u8c03\u51fa\u63a7\u5236\u53f0\u7684\u8be6\u7ec6\u5185\u5bb9\uff0c\u66f4\u591a\u8bf7\u5173\u6ce8\u7c73\u4e91\u5176\u5b83\u76f8\u5173\u6587\u7ae0\uff01<\/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-21352","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21352","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=21352"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21352\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21352"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21352"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21352"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}