{"id":1530,"date":"2024-03-10T01:07:04","date_gmt":"2024-03-09T16:07:04","guid":{"rendered":"https:\/\/hi3103.net\/notes\/?p=1530"},"modified":"2024-03-10T00:51:11","modified_gmt":"2024-03-09T15:51:11","slug":"sublime-text-%e3%81%ab-editerconfig-%e3%82%92%e5%b0%8e%e5%85%a5%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/hi3103.net\/notes\/dev\/1530","title":{"rendered":"Sublime Text \u306b EditerConfig \u3092\u5c0e\u5165\u3059\u308b"},"content":{"rendered":"<h3>\u6982\u8981<\/h3>\n<blockquote>\n<p>EditorConfig<br \/>\n<a href=\"https:\/\/editorconfig.org\/\">https:\/\/editorconfig.org\/<\/a><\/p>\n<\/blockquote>\n<ul>\n<li>EditorConfig \u3068\u306f\u3001\u8907\u6570\u4eba\u3067\u958b\u767a\u3092\u3059\u308b\u3068\u304d\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u7d71\u4e00\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f&amp;\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u3053\u3068<\/li>\n<li>\u4f7f\u7528\u3059\u308b\u306b\u5f53\u305f\u3063\u3066\u306f\u3001\u30cd\u30a4\u30c6\u30a3\u30d6\u3067\u30b5\u30dd\u30fc\u30c8\u3055\u308c\u3066\u3044\u308b\u3082\u306e\u3068\u3001\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u5c0e\u5165\u304c\u5fc5\u8981\u306a\u3082\u306e\u304c\u30a8\u30c7\u30a3\u30bf\u3084 IDE \u306b\u3088\u3063\u3066\u7570\u306a\u308b<\/li>\n<li>Sublime Text \u306f\u30d7\u30e9\u30b0\u30a4\u30f3\uff1d\u30d1\u30c3\u30b1\u30fc\u30b8\u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u304c\u5fc5\u8981<\/li>\n<\/ul>\n<h3>\u5c0e\u5165\u3059\u308b\u3082\u306e<\/h3>\n<blockquote>\n<p>sindresorhus\/editorconfig-sublime: Sublime Text plugin for EditorConfig &#8211; Helps developers maintain consistent coding styles between different editors<br \/>\n<a href=\"https:\/\/github.com\/sindresorhus\/editorconfig-sublime\">https:\/\/github.com\/sindresorhus\/editorconfig-sublime<\/a><\/p>\n<\/blockquote>\n<h3>\u624b\u9806<\/h3>\n<ol>\n<li>Package Control\u3067\u300cEditorConfig\u300d\u3092\u691c\u7d22\u3057\u3066\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/li>\n<li>\u30c6\u30b9\u30c8\u7528\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3057\u3066\u52d5\u4f5c\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/li>\n<\/ol>\n<p><!--more--><\/p>\n<h3>\u4f5c\u696d\u30ed\u30b0<\/h3>\n<h4>\u30c6\u30b9\u30c8\u7528\u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210<\/h4>\n<p>Terminal \u3067\u9069\u5f53\u306a\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30d5\u30a1\u30a4\u30eb\u3092\u7528\u610f\u3002<\/p>\n<pre><code class=\"language-bash\">&gt; mkdir subl-test\n&gt; cd subl-test\n&gt; touch index.html\n&gt; touch .editorconfig<\/code><\/pre>\n<h4>.editorconfig \u3092\u8a2d\u5b9a\u3059\u308b<\/h4>\n<p>\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08 .editorconfig \uff09\u3092 Sublime Text \u4e0a\u3067\u958b\u304f\u3002<\/p>\n<p><a href=\"https:\/\/hi3103.net\/notes\/dev\/1529\">PATH\u3092\u901a\u3057\u3066\u3042\u308c\u3070<\/a>\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306b <code>subl<\/code>  \u30b3\u30de\u30f3\u30c9\u3067\u5b9f\u884c\u53ef\u80fd\u3002<\/p>\n<pre><code class=\"language-bash\">&gt; subl .editorconfig<\/code><\/pre>\n<p>Command Palette \u304b\u3089 <code>Snippet: editorconfig<\/code>  \u3092\u691c\u7d22\u30fb\u5b9f\u884c\u3059\u308b\u3068\u3001\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u30c6\u30f3\u30d7\u30ec\u30fc\u30c8\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<\/p>\n<pre><code class=\"language-bash\">root = true\n\n[*]\nindent_style = tab\n# indent_size = \nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true<\/code><\/pre>\n<p>\u3061\u3083\u3093\u3068\u52d5\u4f5c\u3059\u308b\u306e\u304b\u30c1\u30a7\u30c3\u30af\u3059\u308b\u305f\u3081\u3001\u666e\u6bb5\u3068\u306f\u9055\u3046\u8a2d\u5b9a\u3092\u3053\u3053\u306b\u65bd\u3057\u3066\u3044\u304f\u3002<\/p>\n<pre><code class=\"language-bash\">root = true\n\n[*]\nindent_style = space #\u666e\u6bb5\u306e\u8a2d\u5b9a\u306ftab\nindent_size = 2 #\u666e\u6bb5\u306e\u8a2d\u5b9a\u306f4\nend_of_line = lf\ncharset = utf-8\ntrim_trailing_whitespace = true\ninsert_final_newline = true<\/code><\/pre>\n<h4>index.html \u3067\u52d5\u4f5c\u30c1\u30a7\u30c3\u30af\u3059\u308b<\/h4>\n<p>\u4f5c\u6210\u3057\u305f\u30d5\u30a1\u30a4\u30eb\uff08 index.html \uff09\u3092 Sublime Text \u4e0a\u3067\u958b\u304f\u3002<\/p>\n<pre><code class=\"language-bash\">&gt; subl index.html<\/code><\/pre>\n<h5>Emmet \u3067HTML\u3092\u51fa\u529b<\/h5>\n<p><a href=\"https:\/\/hi3103.net\/notes\/dev\/1087\">\u5c0e\u5165\u6e08\u307f\u306e Emmet<\/a> \u306e\u6a5f\u80fd\u3067\u3001<code>!<\/code>  \u3092\u5c55\u958b\u3059\u308b\u3068\u57fa\u672c\u7684\u306aHTML\u30d5\u30a1\u30a4\u30eb\u306e\u30b3\u30fc\u30c9\u304c\u3067\u3066\u304f\u308b\u3002<\/p>\n<p>\u3053\u308c\u3092\u5b9f\u884c\u3057\u3066\u307f\u305f\u3068\u3053\u308d\u3001\u3061\u3083\u3093\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b92\u500b\u5206\u306e\u30bf\u30d6\u3067\u751f\u6210\u3055\u308c\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2024\/03\/2403-tryeditorconfig-1.png\" alt=\"\" width=\"1062\" height=\"568\"  \/><\/p>\n<h5>insert_final_newline = true \u306e\u52d5\u4f5c<\/h5>\n<p>\u3055\u3089\u306b\u3001\u30d5\u30a1\u30a4\u30eb\u3092\u4e0a\u66f8\u304d\u4fdd\u5b58\u3057\u305f\u3068\u3053\u308d\u3001\u81ea\u52d5\u7684\u306b\u7a7a\u767d\u306e\u6700\u7d42\u884c\u304c\u633f\u5165\u3055\u308c\u305f\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2024\/03\/2403-tryeditorconfig-2.png\" alt=\"\" width=\"1062\" height=\"568\"  \/><\/p>\n<h5>trim_trailing_whitespace = true<\/h5>\n<p>\u9069\u5f53\u306a\u884c\u306e\u672b\u5c3e\u306b\u3001\u308f\u3056\u3068\u534a\u89d2\u30b9\u30da\u30fc\u30b9\u3092\u3044\u308c\u3066\u307f\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2024\/03\/2403-tryeditorconfig-3.png\" alt=\"\" width=\"1062\" height=\"568\"  \/><\/p>\n<p>\u3053\u3061\u3089\u3082\u4e0a\u66f8\u304d\u4fdd\u5b58\u3057\u305f\u3068\u3053\u308d\u3001\u3061\u3083\u3093\u3068\u81ea\u52d5\u3067\u6d88\u3048\u305f\u3002\u3046\u3054\u3044\u3066\u308b\u3002<\/p>\n<p><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/hi3103.net\/notes\/img\/uploads\/2024\/03\/2403-tryeditorconfig-4.png\" alt=\"\" width=\"1062\" height=\"568\"  \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>\u6982\u8981 EditorConfig https:\/\/editorconfig.org\/ EditorConfig \u3068\u306f\u3001\u8907\u6570\u4eba\u3067\u958b\u767a\u3092\u3059\u308b\u3068\u304d\u306b\u30b3\u30fc\u30c7\u30a3\u30f3\u30b0\u306e\u30b9\u30bf\u30a4\u30eb\u3092\u7d71\u4e00\u3059\u308b\u305f\u3081\u306e\u30d5\u30a1\u30a4\u30eb\u5f62\u5f0f&amp;\u30d7\u30e9\u30b0\u30a4\u30f3\u306e\u3053\u3068 \u4f7f [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[93],"tags":[64,30],"class_list":["post-1530","post","type-post","status-publish","format-standard","hentry","category-dev","tag-mac-os","tag-sublimetext"],"_links":{"self":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1530","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/comments?post=1530"}],"version-history":[{"count":0,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/posts\/1530\/revisions"}],"wp:attachment":[{"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/media?parent=1530"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/categories?post=1530"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/hi3103.net\/notes\/wp-json\/wp\/v2\/tags?post=1530"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}