-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
Better HTML support for react #24524
Comments
@isidorn Can you attach the source code and give some ideas what you expect? |
When I am editing HTML like code I would expect all the nice support I have in real HTML, for instance:
Here's the source code,
|
The current situation is a mess.
Sublime Text is no better. Visual Studio provides the best experience but lacks Emmet support natively (with no good/reliable extensions to fill the gap). I guess this is a really hard problem to solve with so many editors failing at it one way or the other. |
@mrchief Can you file individual issues with code samples and steps? Emmet, auto close (now part of the built-in HTML support), all have different owners. |
I saw your earlier comment and was just trying to add/support to what the expectations should be (tag autoclosing, attribute quotes/braces autoclosing, context detection etc.) Regarding 3rd party extensions - if VS Code can support React natively, we won't need them. Just like Whenever I had Emmet related issue, almost everytime I found an already closed issue for that one. Also, the random failures are hard to file, because there is no consistent step to repro them (or at least I haven't found them yet). But yeah, if I can find something consistent, I'll surely report them. I do get your point but I wasn't piggybacking this issue to report new issues. Hope you understand my perspective. |
Yes, let's split this out into individual issues. Going back to @isidorn's original points, I believe tag matching and attribute suggestions generally should work. Tag suggestions should also work, just not automatically when you type Please open a new issues for any cases you'd like to see better supported |
Refs: #24403
Currently if my react component returns HTML I do not get any nice HTML support when I try to edit this, instead this code is treated as javascript.
Easy repro steps
The text was updated successfully, but these errors were encountered: