How to set JSX files default to Babel text highlighting in sublime

前端 未结 2 1191
予麋鹿
予麋鹿 2021-02-05 04:15

I have a babel text highlighting that i added in my sublime. However every time I open a new react project it defaults to javascript text highlighting then i have to reset each

2条回答
  •  名媛妹妹
    2021-02-05 04:41

    What I did was to make babel(JavaScript) the default, preventing the default JavaScript by adding it as a value to ignored_packages.

    To do this, open your sublime, click on Preferences > settings then paste this in:

    "ignored_packages":["JavaScript"]
    

    More details here: https://github.com/babel/babel-sublime

提交回复
热议问题