Search code examples
javascriptreactjssublimetext3babeljsjsx

How to set up Sublime Text 3 for React?


I'm trying to set up my Sublime Text 3 for React like the screenshots in this link, didn't succeed to make it though.

Maybe I have some extra packages or settings that would show my index.js syntax like below:

enter image description here

sublime-settings:

{
    "auto_complete": true,
    "color_scheme": "Packages/Color Scheme - Default/Monokai.tmTheme",
    "dictionary": "Packages/Language - English/en_US.dic",
    "ensure_newline_at_eof_on_save": false,
    "font_face": "MONACO",
    "font_size": 16,
    "show_line_endings": true,
    "show_panel_on_build": true,
    "spell_check": true,
    "theme": "Adaptive.sublime-theme",
    "translate_tabs_to_spaces": true,
    "trim_trailing_white_space_on_save": true
}

I also have these packages:

enter image description here

How do I do that?

(Thanks! I'm new to React/js/jsx)


Solution

  • The best package I found for react/jsx on sublime was Naomi. It deals with syntax highlighting and has a lot of other features.

    https://packagecontrol.io/packages/Naomi