Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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)

like image 436
Emma Avatar asked Mar 14 '20 03:03

Emma


People also ask

Can I use Sublime Text for react?

In order to install it, go to Sublime Text and open the console by pressing (ctrl + `) (regardless if you are on Windows, Linux or OS X), or go to View > Show Console then (update: 06/07/18) go to the official installation page, and copy the Sublime Text 3 version of the code, then paste it into the Sublime Text ...


1 Answers

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

like image 124
cd3k Avatar answered Sep 20 '22 01:09

cd3k