4 ms·
Visual Studio Code does not yet support JSX, nor properly supports ES6, so it's currently unusable to modern Javascript devs. Which is a shame, because it has a
by stevebmark 11y ago
Visual Studio Code does not yet support JSX, nor properly supports ES6, so it's currently unusable to modern Javascript devs. Which is a shame, because it has a lot of potential! I'll be watching this closely to see when it becomes usable in my workflow.
- marpstar 11y agoI haven't tried in plain JavaScript, but I know you can if you use TypeScript. This has been working for me for awhile now.
- joaomoreno 11y agoDev on the Code team here. Not true. Both JSX (http://i.imgur.com/01pAAsl.png http://i.imgur.com/01pAAsl.png & http://i.imgur.com/mRhOx8M.png http://i.imgur.com/mRhOx8M.png) and ES6 (http://i.imgur.com/UOurihn.png http://i.imgur.com/UOurihn.png) are supported in all their glory. Note that if you are editing an ES6 project, you need to create a jsconfig.json file with at least these contents, in order to let the language services know you are doing ES6: { "compilerOptions": { "target": "ES6" } }
- andrewray 11y agoHi! I'm having trouble with both of these. https://github.com/Microsoft/vscode/issues/95 https://github.com/Microsoft/vscode/issues/95 https://github.com/Microsoft/vscode/issues/81 https://github.com/Microsoft/vscode/issues/81 Also can you comment on why a jsconfig.json file is needed, as opposed to some in-editor setting, or reading from the config files the user already has installed, like an .eslintrc?
- stevebmark 11y agoDo you just come out of the woodwork to blame users and then ignore their requests for help?
- mercer 11y agoI think it was terseness rather than rudeness. But of course I can't be 100% sure.
- joaomoreno 11y agoEven better: it also supports TSX (http://tinyurl.com/okgagvs http://tinyurl.com/okgagvs)
- chanon 11y agoNo, it does properly support both of those and I've been happily using those features in VS Code for a while now. It might actually be the best editor for JSX.