{"id":21412,"date":"2024-11-19T09:30:54","date_gmt":"2024-11-19T01:30:54","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21412\/"},"modified":"2024-11-19T09:30:54","modified_gmt":"2024-11-19T01:30:54","slug":"vscode%e6%a0%bc%e5%bc%8f%e5%8c%96%e4%bb%a3%e7%a0%81%e6%80%8e%e4%b9%88%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21412\/","title":{"rendered":"vscode\u683c\u5f0f\u5316\u4ee3\u7801\u600e\u4e48\u7528"},"content":{"rendered":"<blockquote><p>\n  vscode \u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd\u53ef\u81ea\u52a8\u7f29\u8fdb\u548c\u6574\u7406\u4ee3\u7801\uff0c\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u4ee3\u7801\u5e76\u4f7f\u7528 shift + alt + f\uff08windows\uff09\u6216 shift + option + f\uff08macos\uff09\u7684\u5feb\u6377\u952e\u683c\u5f0f\u5316\u3002vscode \u63d0\u4f9b\u53ef\u81ea\u5b9a\u4e49\u7684\u683c\u5f0f\u5316\u9009\u9879\uff0c\u5e76\u652f\u6301\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\u4ee5\u6ee1\u8db3\u66f4\u9ad8\u7ea7\u7684\u9700\u6c42\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052715212021485.jpg\" class=\"aligncenter\" title=\"vscode\u683c\u5f0f\u5316\u4ee3\u7801\u600e\u4e48\u7528\u63d2\u56fe\" alt=\"vscode\u683c\u5f0f\u5316\u4ee3\u7801\u600e\u4e48\u7528\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u4f7f\u7528 Visual Studio Code\uff08VSCode\uff09\u4e2d\u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd<\/strong><\/p>\n<p>VSCode \u4e2d\u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u81ea\u52a8\u6574\u7406\u548c\u7f29\u8fdb\u4ee3\u7801\uff0c\u4f7f\u5176\u66f4\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528\u5b83\uff1a<\/p>\n<p><strong>\u6b65\u9aa4 1\uff1a\u9009\u62e9\u4ee3\u7801<\/strong><\/p>\n<p>\u9009\u62e9\u8981\u683c\u5f0f\u5316\u7684\u4ee3\u7801\u884c\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u9f20\u6807\u5355\u51fb\u548c\u62d6\u52a8\u6216\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\uff08Ctrl + A \u6216 Cmd + A\uff09\u9009\u62e9\u6240\u6709\u4ee3\u7801\u3002<\/p>\n<p><strong>\u6b65\u9aa4 2\uff1a\u4f7f\u7528\u683c\u5f0f\u5316\u5feb\u6377\u952e<\/strong><\/p>\n<p>\u6309\u4ee5\u4e0b\u952e\u76d8\u5feb\u6377\u952e\u683c\u5f0f\u5316\u6240\u9009\u4ee3\u7801\uff1a<\/p>\n<ul>\n<li> <strong>Windows\uff1a<\/strong> Shift + Alt + F<\/li>\n<li> <strong>macOS\uff1a<\/strong> Shift + Option + F<\/li>\n<\/ul>\n<p>\u6216\u8005\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9\u201c\u683c\u5f0f\u5316\u6587\u6863\u201d\u3002<\/p>\n<p><strong>\u683c\u5f0f\u5316\u9009\u9879<\/strong><\/p>\n<p>VSCode \u63d0\u4f9b\u4e86\u591a\u79cd\u683c\u5f0f\u5316\u9009\u9879\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u60a8\u7684\u559c\u597d\u8fdb\u884c\u914d\u7f6e\u3002\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d\uff08\u6587\u4ef6 &gt; \u9996\u9009\u9879 &gt; \u8bbe\u7f6e\uff09\u5e76\u641c\u7d22\u201c\u683c\u5f0f\u5316\u201d\u3002\u5728\u6b64\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u7f29\u8fdb\u98ce\u683c\u3001\u82b1\u62ec\u53f7\u653e\u7f6e\u548c\u5176\u4ed6\u8bbe\u7f6e\u3002<\/p>\n<p><strong>\u9ad8\u7ea7\u683c\u5f0f\u5316<\/strong><\/p>\n<p>\u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\uff0cVSCode \u63d0\u4f9b\u4e86\u201c\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\u201d\u7684\u6982\u5ff5\u3002\u8fd9\u4e9b\u63d0\u4f9b\u7a0b\u5e8f\u662f\u5916\u90e8\u5de5\u5177\u6216\u6269\u5c55\uff0c\u53ef\u4ee5\u8fde\u63a5\u5230 VSCode \u5e76\u63d0\u4f9b\u989d\u5916\u7684\u683c\u5f0f\u5316\u9009\u9879\u3002<\/p>\n<p>\u8981\u5b89\u88c5\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\uff0c\u8bf7\u6309\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\u6253\u5f00 VSCode \u5e02\u573a\uff08Ctrl + Shift + X \u6216 Cmd + Shift + X\uff09<\/li>\n<li>\u641c\u7d22\u60a8\u60f3\u8981\u7684\u63d0\u4f9b\u7a0b\u5e8f<\/li>\n<li>\u5355\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae<\/li>\n<\/ol>\n<p>\u5b89\u88c5\u63d0\u4f9b\u7a0b\u5e8f\u540e\uff0c\u5b83\u5c06\u51fa\u73b0\u5728\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u7f16\u8f91\u5668\u201d&gt;\u201c\u683c\u5f0f\u5316\u201d\u4e0b\u7684\u201c\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\u201d\u4e0b\u62c9\u5217\u8868\u4e2d\u3002<\/p>\n<p><strong>\u6280\u5de7<\/strong><\/p>\n<ul>\n<li> <strong>\u81ea\u52a8\u683c\u5f0f\u5316\uff1a<\/strong> \u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u7f16\u8f91\u5668\u201d&gt;\u201c\u683c\u5f0f\u5316\u201d\u4e0b\u542f\u7528\u201c\u4fdd\u5b58\u65f6\u683c\u5f0f\u5316\u201d\u9009\u9879\uff0c\u8ba9 VSCode \u5728\u4fdd\u5b58\u6587\u4ef6\u65f6\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\u3002<\/li>\n<li> <strong>\u4f7f\u7528\u6269\u5c55\uff1a<\/strong> \u6709\u8bb8\u591a\u6269\u5c55\u53ef\u4ee5\u589e\u5f3a VSCode \u7684\u683c\u5f0f\u5316\u529f\u80fd\uff0c\u4f8b\u5982 Prettier \u548c JavaScript Standard Style\u3002<\/li>\n<li> <strong>\u81ea\u5b9a\u4e49\u5feb\u6377\u952e\uff1a<\/strong> \u60a8\u53ef\u4ee5\u901a\u8fc7\u5728\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u952e\u76d8\u5feb\u6377\u952e\u201d\u4e0b\u521b\u5efa\u81ea\u5b9a\u4e49\u5feb\u6377\u952e\u6765\u66f4\u6539\u683c\u5f0f\u5316\u5feb\u6377\u952e\u3002<\/li>\n<\/ul>\n<p>\u4ee5\u4e0a\u5c31\u662f\u683c\u5f0f\u5316\u4ee3\u7801\u600e\u4e48\u7528\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 \u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd\u53ef\u81ea\u52a8\u7f29\u8fdb\u548c\u6574\u7406\u4ee3\u7801\uff0c\u4ee5\u63d0\u9ad8\u53ef\u8bfb\u6027\u3002\u60a8\u53ef\u4ee5\u9009\u62e9\u4ee3\u7801\u5e76\u4f7f\u7528 shift + alt + f\uff08windows\uff09\u6216 shift + option + f\uff08macos\uff09\u7684\u5feb\u6377\u952e\u683c\u5f0f\u5316\u3002vscode \u63d0\u4f9b\u53ef\u81ea\u5b9a\u4e49\u7684\u683c\u5f0f\u5316\u9009\u9879\uff0c\u5e76\u652f\u6301\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\u4ee5\u6ee1\u8db3\u66f4\u9ad8\u7ea7\u7684\u9700\u6c42\u3002 \u5982\u4f55\u4f7f\u7528 Visual Studio Code\uff08VSCode\uff09\u4e2d\u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd VSCode \u4e2d\u7684\u683c\u5f0f\u5316\u4ee3\u7801\u529f\u80fd\u53ef\u4ee5\u5e2e\u52a9\u60a8\u81ea\u52a8\u6574\u7406\u548c\u7f29\u8fdb\u4ee3\u7801\uff0c\u4f7f\u5176\u66f4\u5bb9\u6613\u9605\u8bfb\u548c\u7406\u89e3\u3002\u4ee5\u4e0b\u662f\u5982\u4f55\u4f7f\u7528\u5b83\uff1a \u6b65\u9aa4 1\uff1a\u9009\u62e9\u4ee3\u7801 \u9009\u62e9\u8981\u683c\u5f0f\u5316\u7684\u4ee3\u7801\u884c\u3002\u60a8\u53ef\u4ee5\u4f7f\u7528\u9f20\u6807\u5355\u51fb\u548c\u62d6\u52a8\u6216\u4f7f\u7528\u952e\u76d8\u5feb\u6377\u952e\uff08Ctrl + A \u6216 Cmd + A\uff09\u9009\u62e9\u6240\u6709\u4ee3\u7801\u3002 \u6b65\u9aa4 2\uff1a\u4f7f\u7528\u683c\u5f0f\u5316\u5feb\u6377\u952e \u6309\u4ee5\u4e0b\u952e\u76d8\u5feb\u6377\u952e\u683c\u5f0f\u5316\u6240\u9009\u4ee3\u7801\uff1a Windows\uff1a Shift + Alt + F macOS\uff1a Shift + Option + F \u6216\u8005\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee3\u7801\u7f16\u8f91\u5668\u4e2d\u53f3\u952e\u5355\u51fb\u5e76\u9009\u62e9\u201c\u683c\u5f0f\u5316\u6587\u6863\u201d\u3002 \u683c\u5f0f\u5316\u9009\u9879 VSCode \u63d0\u4f9b\u4e86\u591a\u79cd\u683c\u5f0f\u5316\u9009\u9879\uff0c\u60a8\u53ef\u4ee5\u6839\u636e\u60a8\u7684\u559c\u597d\u8fdb\u884c\u914d\u7f6e\u3002\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d\uff08\u6587\u4ef6 &gt; \u9996\u9009\u9879 &gt; \u8bbe\u7f6e\uff09\u5e76\u641c\u7d22\u201c\u683c\u5f0f\u5316\u201d\u3002\u5728\u6b64\uff0c\u60a8\u53ef\u4ee5\u66f4\u6539\u7f29\u8fdb\u98ce\u683c\u3001\u82b1\u62ec\u53f7\u653e\u7f6e\u548c\u5176\u4ed6\u8bbe\u7f6e\u3002 \u9ad8\u7ea7\u683c\u5f0f\u5316 \u5bf9\u4e8e\u66f4\u590d\u6742\u7684\u683c\u5f0f\u5316\u9700\u6c42\uff0cVSCode \u63d0\u4f9b\u4e86\u201c\u683c\u5f0f\u5316\u63d0\u4f9b\u7a0b\u5e8f\u201d\u7684\u6982\u5ff5\u3002\u8fd9\u4e9b\u63d0\u4f9b\u7a0b\u5e8f\u662f\u5916\u90e8\u5de5\u5177\u6216\u6269\u5c55\uff0c\u53ef\u4ee5\u8fde\u63a5\u5230 VSCode [&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-21412","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21412","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=21412"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21412\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21412"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21412"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21412"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}