{"id":21354,"date":"2024-11-19T10:17:48","date_gmt":"2024-11-19T02:17:48","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21354\/"},"modified":"2024-11-19T10:17:48","modified_gmt":"2024-11-19T02:17:48","slug":"vscode%e6%8f%92%e4%bb%b6beautify%e6%80%8e%e4%b9%88%e7%94%a8","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21354\/","title":{"rendered":"vscode\u63d2\u4ef6beautify\u600e\u4e48\u7528"},"content":{"rendered":"<blockquote><p>\n  \u4f7f\u7528beautify\u63d2\u4ef6\u5728vscode\u4e2d\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\uff1a\u5b89\u88c5\u63d2\u4ef6\u5e76\u4f7f\u7528\u5feb\u6377\u952e(ctrl\/cmd+shift+f)\u6216\u542f\u7528\u201con save\u201d\u81ea\u52a8\u683c\u5f0f\u5316\u529f\u80fd\uff1b\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u4ee5\u8c03\u6574\u683c\u5f0f\u5316\u89c4\u5219\uff0c\u5982\u7f29\u8fdb\u5927\u5c0f\u548c\u884c\u5c3e\u5206\u9694\u7b26\uff1b\u4f18\u52bf\u5305\u62ec\u63d0\u9ad8\u53ef\u8bfb\u6027\u3001\u4fdd\u6301\u4ee3\u7801\u98ce\u683c\u4e00\u81f4\u548c\u8282\u7701\u65f6\u95f4\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/27\/2024052711391739583.jpg\" class=\"aligncenter\" title=\"vscode\u63d2\u4ef6beautify\u600e\u4e48\u7528\u63d2\u56fe\" alt=\"vscode\u63d2\u4ef6beautify\u600e\u4e48\u7528\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u5728 VSCode \u4e2d\u4f7f\u7528 Beautify \u63d2\u4ef6<\/strong><\/p>\n<p>Beautify \u63d2\u4ef6\u662f VSCode \u4e2d\u4e00\u6b3e\u6d41\u884c\u7684\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\uff0c\u4f7f\u5176\u66f4\u52a0\u6574\u6d01\u6613\u8bfb\u3002<\/p>\n<p><strong>\u5b89\u88c5 Beautify \u63d2\u4ef6<\/strong><\/p>\n<ol>\n<li>\u6253\u5f00 VSCode\uff0c\u70b9\u51fb\u5de6\u4fa7\u680f\u5e95\u90e8\u7684\u201c\u6269\u5c55\u201d\u56fe\u6807\u3002<\/li>\n<li>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cBeautify\u201d\uff0c\u5e76\u6309\u56de\u8f66\u952e\u3002<\/li>\n<li>\u627e\u5230\u5e76\u70b9\u51fb\u201cBeautify\u201d\u63d2\u4ef6\u3002<\/li>\n<li>\u70b9\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae\u3002<\/li>\n<\/ol>\n<p><strong>\u4f7f\u7528 Beautify \u63d2\u4ef6<\/strong><\/p>\n<p>\u5b89\u88c5\u63d2\u4ef6\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528\u5b83\uff1a<\/p>\n<p><strong>1. \u624b\u52a8\u683c\u5f0f\u5316\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u7a81\u51fa\u663e\u793a\u8981\u683c\u5f0f\u5316\u7684\u4ee3\u7801\u3002<\/li>\n<li>\u4f7f\u7528\u5feb\u6377\u952e Ctrl + Shift + F\uff08Windows\uff09\u6216 Cmd + Shift + F\uff08Mac\uff09\u3002<\/li>\n<\/ul>\n<p><strong>2. \u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801<\/strong><\/p>\n<ul>\n<li>\u5728\u201c\u8bbe\u7f6e\u201d\u4e2d\u542f\u7528 Beautify \u63d2\u4ef6\u7684\u201cOn Save\u201d\u529f\u80fd\u3002<\/li>\n<li>\u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u4ee3\u7801\u5c06\u81ea\u52a8\u683c\u5f0f\u5316\u3002<\/li>\n<\/ul>\n<p><strong>\u81ea\u5b9a\u4e49 Beautify \u8bbe\u7f6e<\/strong><\/p>\n<p>\u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49 Beautify \u7684\u8bbe\u7f6e\uff1a<\/p>\n<ul>\n<li>\u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u6269\u5c55\u201d&gt;\u201cBeautify\u201d\u3002<\/li>\n<li>\n<p>\u5728\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e2d\uff0c\u60a8\u53ef\u4ee5\u914d\u7f6e\u4ee5\u4e0b\u9009\u9879\uff1a<\/p>\n<ul>\n<li>\u683c\u5f0f\u5316\u89c4\u5219<\/li>\n<li>\u7f29\u8fdb\u5927\u5c0f<\/li>\n<li>\u884c\u5c3e\u5206\u9694\u7b26<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<p><strong>\u4f18\u52bf<\/strong><\/p>\n<p>\u4f7f\u7528 Beautify \u63d2\u4ef6\u6709\u4ee5\u4e0b\u4f18\u52bf\uff1a<\/p>\n<ul>\n<li>\u63d0\u9ad8\u548c\u7ef4\u62a4\u6027<\/li>\n<li>\u4fdd\u6301\u4ee3\u7801\u98ce\u683c\u4e00\u81f4<\/li>\n<li>\u8282\u7701\u624b\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\u7684\u65f6\u95f4<\/li>\n<\/ul>\n<p><strong>\u6ce8\u610f\uff1a<\/strong><\/p>\n<p>Beautify \u63d2\u4ef6\u53ef\u80fd\u4e0d\u4f1a\u9002\u7528\u4e8e\u6240\u6709\u7f16\u7a0b\u8bed\u8a00\u3002\u5b83\u6700\u9002\u5408\u4e8e JavaScript\u3001Python\u3001Java \u548c HTML \u7b49\u6d41\u884c\u8bed\u8a00\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u63d2\u4ef6beautify\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>\u4f7f\u7528beautify\u63d2\u4ef6\u5728vscode\u4e2d\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\uff1a\u5b89\u88c5\u63d2\u4ef6\u5e76\u4f7f\u7528\u5feb\u6377\u952e(ctrl\/cmd+shift+f)\u6216\u542f\u7528\u201con save\u201d\u81ea\u52a8\u683c\u5f0f\u5316\u529f\u80fd\uff1b\u81ea\u5b9a\u4e49\u8bbe\u7f6e\u4ee5\u8c03\u6574\u683c\u5f0f\u5316\u89c4\u5219\uff0c\u5982\u7f29\u8fdb\u5927\u5c0f\u548c\u884c\u5c3e\u5206\u9694\u7b26\uff1b\u4f18\u52bf\u5305\u62ec\u63d0\u9ad8\u53ef\u8bfb\u6027\u3001\u4fdd\u6301\u4ee3\u7801\u98ce\u683c\u4e00\u81f4\u548c\u8282\u7701\u65f6\u95f4\u3002 \u5982\u4f55\u5728 VSCode \u4e2d\u4f7f\u7528 Beautify \u63d2\u4ef6 Beautify \u63d2\u4ef6\u662f VSCode \u4e2d\u4e00\u6b3e\u6d41\u884c\u7684\u683c\u5f0f\u5316\u5de5\u5177\uff0c\u53ef\u4ee5\u5e2e\u52a9\u60a8\u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801\uff0c\u4f7f\u5176\u66f4\u52a0\u6574\u6d01\u6613\u8bfb\u3002 \u5b89\u88c5 Beautify \u63d2\u4ef6 \u6253\u5f00 VSCode\uff0c\u70b9\u51fb\u5de6\u4fa7\u680f\u5e95\u90e8\u7684\u201c\u6269\u5c55\u201d\u56fe\u6807\u3002 \u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u201cBeautify\u201d\uff0c\u5e76\u6309\u56de\u8f66\u952e\u3002 \u627e\u5230\u5e76\u70b9\u51fb\u201cBeautify\u201d\u63d2\u4ef6\u3002 \u70b9\u51fb\u201c\u5b89\u88c5\u201d\u6309\u94ae\u3002 \u4f7f\u7528 Beautify \u63d2\u4ef6 \u5b89\u88c5\u63d2\u4ef6\u540e\uff0c\u60a8\u53ef\u4ee5\u5728\u4ee5\u4e0b\u4e24\u79cd\u65b9\u5f0f\u4f7f\u7528\u5b83\uff1a 1. \u624b\u52a8\u683c\u5f0f\u5316\u4ee3\u7801 \u7a81\u51fa\u663e\u793a\u8981\u683c\u5f0f\u5316\u7684\u4ee3\u7801\u3002 \u4f7f\u7528\u5feb\u6377\u952e Ctrl + Shift + F\uff08Windows\uff09\u6216 Cmd + Shift + F\uff08Mac\uff09\u3002 2. \u81ea\u52a8\u683c\u5f0f\u5316\u4ee3\u7801 \u5728\u201c\u8bbe\u7f6e\u201d\u4e2d\u542f\u7528 Beautify \u63d2\u4ef6\u7684\u201cOn Save\u201d\u529f\u80fd\u3002 \u4fdd\u5b58\u6587\u4ef6\u540e\uff0c\u4ee3\u7801\u5c06\u81ea\u52a8\u683c\u5f0f\u5316\u3002 \u81ea\u5b9a\u4e49 Beautify \u8bbe\u7f6e \u60a8\u53ef\u4ee5\u6839\u636e\u9700\u8981\u81ea\u5b9a\u4e49 Beautify \u7684\u8bbe\u7f6e\uff1a \u8f6c\u5230\u201c\u8bbe\u7f6e\u201d&gt;\u201c\u6269\u5c55\u201d&gt;\u201cBeautify\u201d\u3002 \u5728\u201c\u8bbe\u7f6e\u201d\u9009\u9879\u5361\u4e2d\uff0c\u60a8\u53ef\u4ee5\u914d\u7f6e\u4ee5\u4e0b\u9009\u9879\uff1a \u683c\u5f0f\u5316\u89c4\u5219 \u7f29\u8fdb\u5927\u5c0f \u884c\u5c3e\u5206\u9694\u7b26 [&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-21354","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21354","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=21354"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21354\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21354"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21354"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21354"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}