{"id":2294,"date":"2019-08-31T10:19:36","date_gmt":"2019-08-31T01:19:36","guid":{"rendered":"https:\/\/www.chihayafuru.jp\/tech\/?p=2294"},"modified":"2025-02-27T09:21:19","modified_gmt":"2025-02-27T00:21:19","slug":"vsc-%e8%a4%87%e6%95%b0%e3%83%95%e3%82%a1%e3%82%a4%e3%83%ab%e3%81%8b%e3%82%89%e3%81%ae%e6%a4%9c%e7%b4%a2%e6%96%b9%e6%b3%95","status":"publish","type":"post","link":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/archives\/2294","title":{"rendered":"[vscode] \u8907\u6570\u30d5\u30a1\u30a4\u30eb\u304b\u3089\u306e\u691c\u7d22\u65b9\u6cd5"},"content":{"rendered":"<p>Visual Studio Code \u3092\u3064\u304b\u3044\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u305f\u304c\u3063\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5<\/p>\n<h2>1. \u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u65b9\u6cd5\u3067\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3002<\/p>\n<ul>\n<li>\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u958b\u304f<\/li>\n<li>\u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u958b\u304f<\/li>\n<\/ul>\n<h2>2. \u691c\u7d22\u30dc\u30c3\u30af\u30b9\u3092\u958b\u304f<\/h2>\n<p>\u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u65b9\u6cd5\u3067\u691c\u7d22\u30dc\u30c3\u30af\u30b9\u3092\u958b\u304f\u3002<\/p>\n<ul>\n<li>\u30e1\u30cb\u30e5\u30fc\u30d0\u30fc\u304b\u3089\u9078\u629e : [ \u7de8\u96c6(C) ] \u21d2 [ \u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6307\u5b9a\u3057\u3066\u691c\u7d22 ]<\/li>\n<li>\u30b7\u30e7\u30fc\u30c8\u30ab\u30c3\u30c8\u30ad\u30fc\u64cd\u4f5c : Control + Shift + F<\/li>\n<li>\u30a2\u30a4\u30b3\u30f3\u64cd\u4f5c : \u5de6\u5217\u306e\u866b\u773c\u93e1\u30a2\u30a4\u30b3\u30f3<\/li>\n<\/ul>\n<p><!--more--><\/p>\n<h2>3. \u8a73\u7d30\u691c\u7d22\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u306e\u958b\u9589<\/h3>\n<h3>3.1. \u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u304c\u9589\u3058\u305f\u72b6\u614b\uff08\u30c7\u30d5\u30a9\u30eb\u30c8\uff09<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/closed_search_options.png\" alt=\"\u8a73\u7d30\u8a2d\u5b9a \u975e\u8868\u793a\" ><\/p>\n<ul>\n<li>\u300e\uff65\uff65\uff65\u300f\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u304c\u958b\u304f\u3002<\/li>\n<li><strong><font color=\"red\">\u3010\u6ce8\u610f\u3011<\/font><\/strong> \u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u304c\u9589\u3058\u3066\u3044\u308b\uff08\u975e\u8868\u793a\u3067\u3042\u308b\uff09\u3068\u3057\u3066\u3082\u3001\u9589\u3058\u308b\u524d\u306b\u8a2d\u5b9a\u3057\u305f\u8a73\u7d30\u8a2d\u5b9a\u306e\u5185\u5bb9\u304c\u53cd\u6620\u3055\u308c\u308b\u3002<\/li>\n<\/ul>\n<h3>3.2. \u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u304c\u958b\u3044\u305f\u72b6\u614b<\/h3>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/opened_search_options.png\" alt=\"\u8a73\u7d30\u8a2d\u5b9a \u8868\u793a\" ><\/p>\n<li>\u300e\uff65\uff65\uff65\u300f\u3092\u30af\u30ea\u30c3\u30af\u3059\u308b\u3068\u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u304c\u9589\u3058\u308b\u3002<\/li>\n<li><strong><font color=\"red\">\u3010\u6ce8\u610f\u3011<\/font><\/strong> \u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9\u3092\u9589\u3058\u305f\u3068\u3057\u3066\u3082\u3001\u9589\u3058\u308b\u524d\u306e\u691c\u7d22\u6761\u4ef6\u304c\u305d\u306e\u307e\u307e\u691c\u7d22\u7d50\u679c\u306b\u53cd\u6620\u3055\u308c\u308b\u3002<\/li>\n<h3>4. \u8a73\u7d30\u8a2d\u5b9a\u30dc\u30c3\u30af\u30b9<\/h3>\n<h4>4.1. \u542b\u3081\u308b\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/include_file_filter.png\" alt=\"\u542b\u3081\u308b\u30d5\u30a1\u30a4\u30eb\" ><\/p>\n<ul>\n<li>\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u3064\u304b\u3044\u691c\u7d22\u5bfe\u8c61\u306b\u542b\u3081\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3002\n<ul>\n<li><code>*<\/code> : \u4efb\u610f\u306e\u4e00\u6587\u5b57<\/li>\n<li><code>**<\/code> : \u4efb\u610f\u306e\u591a\u6bb5\u30d5\u30a9\u30eb\u30c0\u30fc\u968e\u5c64<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>4.2. \u958b\u3044\u3066\u3044\u308b\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u306e\u307f\u691c\u7d22<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/opened_files_only.png\" alt=\"\u958b\u3044\u3066\u3044\u308b\u30a8\u30c7\u30a3\u30bf\u30fc\u306e\u307f\" ><\/p>\n<ul>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u7121\u52b9\u3067\u3042\u308b\u3002<\/li>\n<li>\u300e\u958b\u3044\u305f\u30da\u30fc\u30b8\u300f\u30a2\u30a4\u30b3\u30f3\u304c\u6709\u52b9\u306e\u3068\u304d\u306f\u3001Visual Studio Code \u306e\u30bf\u30d6\u3067\u958b\u3044\u3066\u3044\u308b\u30d5\u30a1\u30a4\u30eb\u306e\u307f\u304c\u691c\u7d22\u5bfe\u8c61\u3068\u306a\u308b\u3002<\/li>\n<li><strong><font color=\"red\">\u3010\u6ce8\u610f\u3011<\/font><\/strong> \u4e0d\u7528\u610f\u306b\u300c\u958b\u3044\u3066\u3044\u308b\u30a8\u30c7\u30a3\u30bf\u30fc\u3067\u306e\u307f\u691c\u7d22\u300d\u3092\u6709\u52b9\u306b\u3057\u3066\u3044\u308b\u3068\u3001\u601d\u3063\u305f\u901a\u308a\u306b\u691c\u7d22\u304c\u30d2\u30c3\u30c8\u3057\u306a\u3044\u305f\u3081\u6ce8\u610f\u3059\u308b\u3053\u3068\u3002<\/li>\n<\/ul>\n<h4>4.3. \u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/exclude_file_filter.png\" alt=\"\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\" ><\/p>\n<ul>\n<li>\u30ef\u30a4\u30eb\u30c9\u30ab\u30fc\u30c9\u3092\u3064\u304b\u3044\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b\u3002\n<ul>\n<li><code>*<\/code> : \u4efb\u610f\u306e\u4e00\u6587\u5b57<\/li>\n<li><code>**<\/code> : \u4efb\u610f\u306e\u591a\u6bb5\u30d5\u30a9\u30eb\u30c0\u30fc\u968e\u5c64<\/li>\n<\/ul>\n<\/li>\n<\/ul>\n<h4>4.4. \u9664\u5916\u8a2d\u5b9a\u3092\u4f7f\u7528\u3057\u3066\u30d5\u30a1\u30a4\u30eb\u3092\u7121\u8996<\/h4>\n<p><img decoding=\"async\" src=\"https:\/\/chihayafuru.s3-ap-northeast-1.amazonaws.com\/imgs\/wp\/2025\/02\/enable_exclude_filter.png\" alt=\"\u9664\u5916\u8a2d\u5b9a\" ><\/p>\n<ul>\n<li>\u30c7\u30d5\u30a9\u30eb\u30c8\u306f\u6709\u52b9\u3067\u3042\u308b\u3002<\/li>\n<li>\u300e\u6b6f\u8eca\u7981\u6b62\u300f\u30a2\u30a4\u30b3\u30f3\u304c\u6709\u52b9\u306e\u3068\u304d\u306f\u3001Visual Studio Code (settings.json) \u306e\u691c\u7d22\u9664\u5916\u8a2d\u5b9a\u304c\u6709\u52b9\u306b\u306a\u308b\u3002\u305f\u3068\u3048\u3070\u3001<code>.gitignore<\/code>\u3067\u6307\u5b9a\u3055\u308c\u305f\u30d5\u30a1\u30a4\u30eb\u304c\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3055\u308c\u308b\u3002<\/li>\n<li>\u901a\u5e38\u306f\u691c\u7d22\u9664\u5916\u8a2d\u5b9a\u3092\u6709\u52b9\u306b\u3057\u3066\u4e2d\u9593\u30d5\u30a1\u30a4\u30eb\u3084\u30c6\u30f3\u30dd\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3057\u3001\u30b1\u30fc\u30b9\u30d0\u30a4\u30b1\u30fc\u30b9\u3067\u9664\u5916\u8a2d\u5b9a\u3092\u7121\u52b9\u306b\u3057\u3066\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u5bfe\u8c61\u3068\u3059\u308b\u4f7f\u3044\u65b9\u304c\u8003\u3048\u3089\u308c\u308b\u3002<\/li>\n<\/ul>\n<p><!--\n\n\n<h2>2. \u5305\u542b\u307e\u305f\u306f\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u6307\u5b9a\u3059\u308b<\/h2>\n\n\n\n<img decoding=\"async\" src=\"\/tech\/wp-content\/uploads\/2018\/05\/vscode_filtering_files2.png\">\n\n\n\n<ul>\n  \n\n<li>\u300e\uff65\uff65\uff65\uff08\u62e1\u5f35\u30e1\u30cb\u30e5\u30fc\uff09\u300f\u3092\u30af\u30ea\u30c3\u30af\u3057\u3066\u5165\u529b\u67a0\u3092\u958b\u304f<\/li>\n\n\n  \n\n<li>\u8907\u6570\u306e\u6761\u4ef6\u306f \u30ab\u30f3\u30de ( , ) \u533a\u5207\u308a<\/li>\n\n\n<\/ul>\n\n\n\n\n<p><strong><font color=\"red\">\u3010\u6ce8\u610f\u3011<\/font><\/strong> \u5305\u542b\u307e\u305f\u306f\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u306b\u6761\u4ef6\u3092\u5165\u529b\u3059\u308b\u3068<u>\u62e1\u5f35\u30e1\u30cb\u30e5\u30fc\u3092\u9589\u3058\u305f\u3042\u3068<\/u>\u3082\u691c\u7d22\u7d50\u679c\u306b\u53cd\u6620\u3055\u308c\u308b\u3002<\/p>\n\n\n\n\n<blockquote>\nApril 2018 (version 1.2.3) \u306b\u304a\u3044\u3066\u300c\u5305\u542b\uff08\u542b\u3081\u308b\u30d5\u30a1\u30a4\u30eb\uff09\u300d\u3068\u300c\u9664\u5916\uff08\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\uff09\u300d\u306f\u5225\u3005\u306e\u5165\u529b\u30dc\u30c3\u30af\u30b9\u306b\u5909\u66f4\u3055\u308c\u305f\u3002<br \/>\uff08\u904e\u53bb\u306e\u4ed5\u69d8\u306b\u623b\u3063\u305f\uff09<br \/>\n<a href=\"https:\/\/code.visualstudio.com\/updates\/v1_23#_return-of-the-separate-search-include-and-exclude-input-boxes\">Return of the separate search include and exclude input boxes<\/a>\n<\/blockquote>\n\n\n--><\/p>\n<h2>5. \u9664\u5916\u8a2d\u5b9a<\/h2>\n<p>\u5168\u30d5\u30a1\u30a4\u30eb\u3092\u5bfe\u8c61\u306b\u691c\u7d22\u3092\u5b9f\u884c\u3059\u308b\u3068\u76ee\u7684\u306e\u30d5\u30a1\u30a4\u30eb\u4ee5\u5916\uff08\u305f\u3068\u3048\u3070\u4e2d\u9593\u30d5\u30a1\u30a4\u30eb\u3084\u30c6\u30f3\u30dd\u30e9\u30ea\u30d5\u30a1\u30a4\u30eb\uff09\u3082\u691c\u7d22\u306b\u30d2\u30c3\u30c8\u3057\u3066\u5fc5\u8981\u306a\u691c\u7d22\u30d2\u30c3\u30c8\u304c\u57cb\u3082\u308c\u3066\u3057\u307e\u3046\u3002\u305d\u3053\u3067\u4e0b\u8a18\u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u8a2d\u5b9a\u3092\u8ffd\u52a0\u3057\u3066\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u4e0d\u8981\u306a\u30d5\u30a1\u30a4\u30eb\u3092\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u5916\u3059\uff08\u30d5\u30a3\u30eb\u30bf\u30ea\u30f3\u30b0\u3059\u308b\uff09\u3002\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u5916\u3059\u65b9\u6cd5\uff08\u8a2d\u5b9a\uff09\u306f\u8907\u6570\u3042\u308b\u305f\u3081\u3001\u305d\u306e\u4e00\u4f8b\u3092\u4e0b\u8a18\u306b\u6319\u3052\u308b\u3002<\/p>\n<h2>5.1. \u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u306e\u8868\u793a\u5bfe\u8c61\u304b\u3089\u306e\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<h3>settings.json<\/h3>\n<pre><code>\"files.exclude\": {\r\n    \"**\/.git\": true,\r\n    \"**\/.svn\": true,\r\n    \"**\/.hg\": true,\r\n    \"**\/CVS\": true,\r\n    \"**\/.DS_Store\": true\r\n},<\/code><\/pre>\n<h3>\u30a8\u30af\u30b9\u30d7\u30ed\u30fc\u30e9\u304b\u3089\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b<\/h3>\n<ul>\n<li>\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb : \u753b\u50cf\u30d5\u30a1\u30a4\u30eb\u3001\u5b9f\u884c\u30d5\u30a1\u30a4\u30eb\u306a\u3069<\/li>\n<li>\u30d0\u30a4\u30ca\u30ea\u30d5\u30a1\u30a4\u30eb\u3092\u542b\u3080\u30d5\u30a9\u30eb\u30c0\u30fc : Git\u30ea\u30dd\u30b8\u30c8\u30ea\u306a\u3069<\/li>\n<li>\u4e0d\u53ef\u8996\u5c5e\u6027\u30d5\u30a1\u30a4\u30eb : .DS_Store\u306a\u3069<\/li>\n<\/ul>\n<h2>5.2. \u691c\u7d22\u306e\u5bfe\u8c61\u304b\u3089\u306e\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3068\u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u8a2d\u5b9a\u3059\u308b<\/h2>\n<h3>settings.json<\/h3>\n<pre><code>\"search.exclude\": {\r\n    \"**\/node_modules\": true,\r\n    \"**\/bower_components\": true\r\n},<\/code><\/pre>\n<h3>\u691c\u7d22\u5bfe\u8c61\u304b\u3089\u9664\u5916\u3059\u308b\u30d5\u30a1\u30a4\u30eb\u3084\u30d5\u30a9\u30eb\u30c0\u30fc\u306e\u4f8b<\/h3>\n<ul>\n<li>\u4e2d\u9593\u751f\u6210\u30d5\u30a1\u30a4\u30eb<\/li>\n<li>\u30c6\u30f3\u30dd\u30e9\u30ea\u30fc\u30fb\u30d5\u30a1\u30a4\u30eb<\/li>\n<\/ul>\n<h2>5.3. .gitignore \u3068 .ignore \u306e\u8a2d\u5b9a\u3092\u691c\u7d22\u6642\u306b\u6709\u52b9\u5316\u3059\u308b<\/h2>\n<h3>settings.json<\/h3>\n<pre><code>\"search.useIgnoreFiles\": true,<\/code><\/pre>\n<h3>\u5916\u90e8\u30ea\u30f3\u30af<\/h3>\n<ul>\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/editor\/codebasics#_search-across-files\">Visual Studio Code \u516c\u5f0f &#8211; Search across files<\/a><\/li>\n<li><a href=\"https:\/\/code.visualstudio.com\/docs\/editor\/codebasics#_advanced-search-options\">Visual Studio Code \u516c\u5f0f &#8211; Advanced search options<\/a><\/li>\n<\/ul>\n","protected":false},"excerpt":{"rendered":"<p>Visual Studio Code \u3092\u3064\u304b\u3044\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u306b\u307e\u305f\u304c\u3063\u3066\u6587\u5b57\u5217\u3092\u691c\u7d22\u3059\u308b\u65b9\u6cd5 1. \u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f \u4ee5\u4e0b\u306e\u3044\u305a\u308c\u304b\u306e\u65b9\u6cd5\u3067\u8907\u6570\u306e\u30d5\u30a1\u30a4\u30eb\u3092\u958b\u304f\u3002 \u30d5\u30a9\u30eb\u30c0\u30fc\u3092\u958b\u304f \u30ef\u30fc\u30af\u30b9\u30da\u30fc\u30b9\u3092\u958b\u304f 2. \u691c\u7d22\u30dc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[39],"class_list":["post-2294","post","type-post","status-publish","format-standard","hentry","category-memo","tag-vscode"],"_links":{"self":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2294","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/comments?post=2294"}],"version-history":[{"count":25,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2294\/revisions"}],"predecessor-version":[{"id":7923,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/posts\/2294\/revisions\/7923"}],"wp:attachment":[{"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/media?parent=2294"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/categories?post=2294"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.chihayafuru.jp\/tech\/index.php\/wp-json\/wp\/v2\/tags?post=2294"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}