Skip to content

setting up sublime for react

HannaHoJ edited this page May 25, 2017 · 1 revision
  1. Syntax highlighting:

open package manager tip in install packages and hit enter tip in babel and hit enter go to the bottom right of the screen where the syntax of the language is chosen go to 'Open all with current extension as...' go to Babel and choose Javascript (Babel).

  1. Emment (auto complete for react syntax) install emmet with the package manager (like above) and watch that video https://www.youtube.com/watch?v=JTHM077EHbI the code snippet which you have to add to preferences -> key bindings -> .sublime-keymap -User you can find here: https://gist.github.com/wesbos/2bb4a6998635df97c748

  2. SublimeLinter (finds syntax errors in sublime) https://blog.meteor.com/set-up-sublime-text-for-meteor-es6-es2015-and-jsx-syntax-and-linting-d387de545b0d there is a example code for configuration. We could use it as template and customize it.

Clone this wiki locally