{"id":21281,"date":"2024-11-19T08:48:41","date_gmt":"2024-11-19T00:48:41","guid":{"rendered":"https:\/\/fwq.ai\/blog\/21281\/"},"modified":"2024-11-19T08:48:41","modified_gmt":"2024-11-19T00:48:41","slug":"vscode%e5%85%a8%e5%b1%80%e6%90%9c%e7%b4%a2%e6%80%8e%e4%b9%88%e6%98%be%e7%a4%ba%e5%87%ba%e6%9d%a5","status":"publish","type":"post","link":"https:\/\/fwq.ai\/blog\/21281\/","title":{"rendered":"vscode\u5168\u5c40\u641c\u7d22\u600e\u4e48\u663e\u793a\u51fa\u6765"},"content":{"rendered":"<blockquote><p>\n  \u8981\u5728 vscode \u4e2d\u663e\u793a\u5168\u5c40\u641c\u7d22\u7ed3\u679c\uff1a\u542f\u7528\u5168\u5c40\u641c\u7d22\u8bbe\u7f6e\uff08\u5220\u9664 &#8220;\/node_modules\/&#8221; \u548c &#8220;\/bower_components\/&#8221; \u6392\u9664\u9879\uff09\uff1b\u4f7f\u7528\u5168\u5c40\u641c\u7d22\u547d\u4ee4\uff08ctrl + shift + f \u6216 cmd + shift + f\uff09\uff0c\u641c\u7d22\u7ed3\u679c\u5c06\u663e\u793a\u5728\u53f3\u4fa7\u201c\u641c\u7d22\u201d\u9009\u9879\u5361\u4e2d\u3002\n<\/p><\/blockquote>\n<p><img decoding=\"async\" src=\"https:\/\/img.php.cn\/upload\/article\/202405\/15\/2024051506241772413.jpg\" class=\"aligncenter\" title=\"vscode\u5168\u5c40\u641c\u7d22\u600e\u4e48\u663e\u793a\u51fa\u6765\u63d2\u56fe\" alt=\"vscode\u5168\u5c40\u641c\u7d22\u600e\u4e48\u663e\u793a\u51fa\u6765\u63d2\u56fe\" \/><\/p>\n<p><strong>\u5982\u4f55\u663e\u793a VSCode \u4e2d\u7684\u5168\u5c40\u641c\u7d22\u7ed3\u679c<\/strong><\/p>\n<p>\u5728 VSCode \u4e2d\uff0c\u5168\u5c40\u641c\u7d22\u9ed8\u8ba4\u4e0d\u4f1a\u663e\u793a\u641c\u7d22\u7ed3\u679c\u3002\u8981\u663e\u793a\u641c\u7d22\u7ed3\u679c\uff0c\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a<\/p>\n<ol>\n<li>\n<p><strong>\u542f\u7528\u5168\u5c40\u641c\u7d22\u8bbe\u7f6e\uff1a<\/strong><\/p>\n<ul>\n<li>\u6253\u5f00 VSCode \u8bbe\u7f6e\uff08File &gt; Preferences &gt; Settings\uff09<\/li>\n<li>\u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165 &#8220;files.exclude&#8221;<\/li>\n<li>\u5c55\u5f00 &#8220;Files: Exclude&#8221; \u8bbe\u7f6e<\/li>\n<li>\u627e\u5230 &#8220;<strong>\/node_modules\/<\/strong>&#8221; \u9879\u5e76\u5c06\u5176\u5220\u9664<\/li>\n<li>\u627e\u5230 &#8220;<strong>\/bower_components\/<\/strong>&#8221; \u9879\u5e76\u5c06\u5176\u5220\u9664<\/li>\n<\/ul>\n<\/li>\n<li>\n<p><strong>\u4f7f\u7528\u5168\u5c40\u641c\u7d22\u547d\u4ee4\uff1a<\/strong><\/p>\n<ul>\n<li>\u6309 Ctrl + Shift + F\uff08Windows\uff09\u6216 Cmd + Shift + F\uff08macOS\uff09\u6253\u5f00\u641c\u7d22\u6846<\/li>\n<li>\u5728\u641c\u7d22\u6846\u4e2d\u8f93\u5165\u8981\u67e5\u627e\u7684\u6587\u672c<\/li>\n<\/ul>\n<\/li>\n<\/ol>\n<p>\u641c\u7d22\u7ed3\u679c\u5c06\u663e\u793a\u5728\u7f16\u8f91\u5668\u53f3\u4fa7\u7684\u201c\u641c\u7d22\u201d\u9009\u9879\u5361\u4e2d\u3002\u7ed3\u679c\u4f1a\u6309\u6587\u4ef6\u7ec4\u7ec7\uff0c\u5e76\u4e14\u53ef\u4ee5\u53cc\u51fb\u7ed3\u679c\u4ee5\u6253\u5f00\u76f8\u5e94\u7684\u6587\u4ef6\u3002<\/p>\n<p>\u4ee5\u4e0a\u5c31\u662f\u5168\u5c40\u641c\u7d22\u600e\u4e48\u663e\u793a\u51fa\u6765\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>\u8981\u5728 vscode \u4e2d\u663e\u793a\u5168\u5c40\u641c\u7d22\u7ed3\u679c\uff1a\u542f\u7528\u5168\u5c40\u641c\u7d22\u8bbe\u7f6e\uff08\u5220\u9664 &#8220;\/node_modules\/&#8221; \u548c &#8220;\/bower_components\/&#8221; \u6392\u9664\u9879\uff09\uff1b\u4f7f\u7528\u5168\u5c40\u641c\u7d22\u547d\u4ee4\uff08ctrl + shift + f \u6216 cmd + shift + f\uff09\uff0c\u641c\u7d22\u7ed3\u679c\u5c06\u663e\u793a\u5728\u53f3\u4fa7\u201c\u641c\u7d22\u201d\u9009\u9879\u5361\u4e2d\u3002 \u5982\u4f55\u663e\u793a VSCode \u4e2d\u7684\u5168\u5c40\u641c\u7d22\u7ed3\u679c \u5728 VSCode \u4e2d\uff0c\u5168\u5c40\u641c\u7d22\u9ed8\u8ba4\u4e0d\u4f1a\u663e\u793a\u641c\u7d22\u7ed3\u679c\u3002\u8981\u663e\u793a\u641c\u7d22\u7ed3\u679c\uff0c\u9700\u8981\u6309\u7167\u4ee5\u4e0b\u6b65\u9aa4\u64cd\u4f5c\uff1a \u542f\u7528\u5168\u5c40\u641c\u7d22\u8bbe\u7f6e\uff1a \u6253\u5f00 VSCode \u8bbe\u7f6e\uff08File &gt; Preferences &gt; Settings\uff09 \u5728\u641c\u7d22\u680f\u4e2d\u8f93\u5165 &#8220;files.exclude&#8221; \u5c55\u5f00 &#8220;Files: Exclude&#8221; \u8bbe\u7f6e \u627e\u5230 &#8220;\/node_modules\/&#8221; \u9879\u5e76\u5c06\u5176\u5220\u9664 \u627e\u5230 &#8220;\/bower_components\/&#8221; \u9879\u5e76\u5c06\u5176\u5220\u9664 \u4f7f\u7528\u5168\u5c40\u641c\u7d22\u547d\u4ee4\uff1a \u6309 Ctrl + Shift + F\uff08Windows\uff09\u6216 Cmd + Shift + F\uff08macOS\uff09\u6253\u5f00\u641c\u7d22\u6846 [&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-21281","post","type-post","status-publish","format-standard","hentry","category-16"],"_links":{"self":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21281","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=21281"}],"version-history":[{"count":0,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/posts\/21281\/revisions"}],"wp:attachment":[{"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/media?parent=21281"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/categories?post=21281"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/fwq.ai\/blog\/wp-json\/wp\/v2\/tags?post=21281"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}