Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JSX support in Sublime Text 3? #548

Closed
ghost opened this issue Apr 2, 2015 · 7 comments

Comments

@ghost
Copy link

commented Apr 2, 2015

Hi,

Just saw the tweet about .jsx support, tried it in Sublime Text 3 and tags aren't expanding when I try it within a React render method. I'm using the JavaScript (Babel) syntax, could that be the reason it's not working? Do we have to write the render method in a specific way with a specific syntax to make it work?

Thanks!

@rashthedude

This comment has been minimized.

Copy link

commented Apr 2, 2015

+1

@sergeche

This comment has been minimized.

Copy link
Owner

commented Apr 2, 2015

I assume you’re trying to use Tab key: https://github.com/sergeche/emmet-sublime#tab-key-handler

@harrisgeo

This comment has been minimized.

Copy link

commented Apr 2, 2015

+1

@jeroveoo

This comment has been minimized.

Copy link

commented Apr 2, 2015

+2

@ghost

This comment has been minimized.

Copy link
Author

commented Apr 2, 2015

@sergeche Indeed that was the problem, using ctrl+e works fine and changes span.bar as <span className="bar"></span> for example.

Just to make sure, there is really no way of having the tab completion work inside a JSX block?

Thanks again for the amazing work on Emmet, can't live without it 😉

@sergeche

This comment has been minimized.

Copy link
Owner

commented Apr 2, 2015

You can enable it as described in link above, but you’ll loose your native JS snippets

@ghost

This comment has been minimized.

Copy link
Author

commented Apr 2, 2015

Alright, well using ctrl-e is good enough, thanks for the help!

@ghost ghost closed this Apr 2, 2015

This issue was closed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
4 participants
You can’t perform that action at this time.