DEV Community 👩‍💻👨‍💻

DEV Community 👩‍💻👨‍💻 is a community of 967,911 amazing developers

We're a place where coders share, stay up-to-date and grow their careers.

Create account Log in
Sreeharsh K
Sreeharsh K

Posted on

Code Reactjs Faster by Enabling Emmet for JavaScript and TypeScript in VS Code

If you have watched various tutorials on YouTube about Reactjs and wondered how these guys code so quickly?

Well, if you are an intermediate coder like me or beginner you might not have the idea how does they do it. I have found a way how they are all using various plugins in their Code Editor or the IDE(integrated development environment). Some of these plugins include ES7 React/Redux/GraphQL/React-Native snippets, Auto Close Tag, Auto Complete Tag.

But, today I discovered something new for Reactjs developers, its called Emmet support.

The Emmets are actually inspired by the CSS Selectors, it allows you to type shortcuts that are then expanded into full pieces of code. Emmet abbreviation and snippet expansions are enabled by default in js, jsx, tsx, ts among other files.

How to Enable Emmet Support for JSX

You can enable it by adding the following code inside Settings.json of your Visual Studio Code Editor.

"emmet.includeLanguages":{
        "javascript": "javascriptreact",
        "typescript": "typescriptreact"
}
Enter fullscreen mode Exit fullscreen mode

References

Brian Design

Top comments (0)

🌚 Life is too short to browse without dark mode