Unlike in webstorm, I'm unable to comment jsx code out in .js files in Visual Studio Code.
相关问题
- How to toggle on Order in ReactJS
- Refreshing page gives Cannot GET /page_url in reac
- Adding a timeout to a render function in ReactJS
- React Native Inline style for multiple Text in sin
- Issue with React.PropTypes.func.isRequired
相关文章
- Visual Studio Code, MAC OS X, OmniSharp server is
- Why would we use useEffect without a dependency ar
- Omnisharp in VS Code produces a lot of warnings ab
- Is it possible to get ref of props.children?
- Why do we have to call `.done()` at the end of a p
- Stateless function components cannot be given refs
- React testing library: Test attribute / prop
- React/JestJS/Enzyme: How to test for ref function?
This also works
Currently in Visual studio code it could be done by pressing combination - Shift+Alt+A and comment "jsx" code it produces - {/**/} comments.
In
Visual Studio code
HitCmd + /
if you are running on mac or placeThank you.
Try to disable all plugins, because they can change editor's behaviour. For example if use Babel ES6/ES7 plugin, editor comments
.jsx
syntax by//
instead of{/*
. You see see the issue here.{/* this works, but only single line */}
You can comment out JSX by {/**/}
Example :
and then Component2 would be commented out