Atomで拡張子とシンタックスを関連付けする
atomでrubyファイルを開くとrailsのsyntax colorとなっていたのだが、ある日突然単純なrubyのsyntax colorに変わってしまった。
原因がわからなかったが、.atom/config.cson
のcustomFileTypesを追記すれば強制的に拡張子との紐付けができた。
.atom/config.cson
"*":
core:
customFileTypes:
'source.ruby.rails': [ //syntax
'rb'//拡張子名
]
syntaxの調べ方はSettings -> Packages にてruby on rails
のように調べたい言語で検索する
Settingsに入り、Scopeの部分で確認できる。
参考サイト
Author And Source
この問題について(Atomで拡張子とシンタックスを関連付けする), 我々は、より多くの情報をここで見つけました https://qiita.com/adebadayo/items/ec59c002c167c3311a81著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .