- make sure the WebStorm "Textmate bundles support" plugin is enabled
- download the Textmate bundle from https://github.com/andrespagella/JSX-TextMate-Bundle
- replace /Syntaxes/JSX.tmLanguage with this https://github.com/yungsters/sublime/blob/master/tmLanguage/JavaScript%20(JSX).tmLanguage (presumeably better?)
- add the textmate bundle to WebStorm
- make sure the *.jsx extension is handled by "Files supported via Textmate bundles"
- in case of color issues: you need to map your WebStorm scheme to a Textmate scheme. The Textmate color schemes are stored in .WebStorm7\config\plugins\textmate\lib\themes (on windows) and can be pruned to get rid of weird background artifacts
Created
January 25, 2014 23:09
-
-
Save jmosbech/8625173 to your computer and use it in GitHub Desktop.
WebStorm and JSX
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I think it's better to have *.jsx file handled by JavaScript editor, otherwise auto-complete, and error reporting won't work for JS code inside *.jsx.
P.S.: Vote for native JSX support in WebStorm / IntelliJ: http://youtrack.jetbrains.com/issue/WEB-10136