Top 5 Best VSCode Extensions
Beto, June 23, 2022 · 924 views
You'll learn my top 5 favorite VSCode extensions that help speed up your development, especially if you work with React Native. I show how each extension improves your workflow, from formatting code to collaborative editing and AI-powered code completion.
If you want to save time writing code, avoid repetitive tasks, and collaborate better with others, these extensions are essential. I also share tips on how to install and use them effectively in your projects.
What's inside
- Installing VSCode extensions and introduction to Prettier
- Prettier for automatic code formatting on save
- Tailwind CSS IntelliSense for class name autocomplete
- Live Share for real-time collaborative coding and debugging
- React Redux Snippets for quick React and Redux component scaffolding
- GitHub Copilot for AI-powered code suggestions and completions
Installing VSCode extensions and introduction to Prettier
I start by showing how to install extensions in VSCode: open the Extensions sidebar, search by name, and click install. The first extension I recommend is Prettier, a popular code formatter.
Prettier automatically formats your code on save to keep it consistent and clean. I demonstrate this by writing a simple JavaScript function with messy indentation and missing braces. When I save the file, Prettier fixes the formatting instantly.
This extension is a must-have for any new project. I also mention a blog post on my platform with detailed instructions on configuring Prettier specifically for React Native projects.
Prettier for automatic code formatting on save
Prettier helps you avoid wasting time on formatting issues by enforcing a consistent style. You just write your code however you want, then save, and Prettier cleans it up.
It handles indentation, braces, spacing, and more. This keeps your codebase uniform and easier to read. I recommend enabling Prettier from the start of your project to save time and reduce formatting debates.
Tailwind CSS IntelliSense for class name autocomplete
Next, I cover an extension for Tailwind CSS users that provides autocomplete suggestions for class names inside your JSX or HTML.
When you type a class name, pressing Ctrl+Space (Cmd+Space on Mac) opens a suggestion window with all available Tailwind classes. For example, typing "text" shows options like "text-screen-500" and "font-bold".
This autocomplete saves you from memorizing class names and speeds up styling your components. It works seamlessly inside React Native projects using Tailwind.
Live Share for real-time collaborative coding and debugging
Live Share is a powerful extension that lets you share your VSCode session with other developers in real time.
You generate a shareable link, send it to a teammate, and they can join your workspace. Both of you can edit code, debug, and see each other's cursors live.
This is great for pair programming, code reviews, or remote debugging sessions. It eliminates the need for screen sharing or sending files back and forth.
React Redux Snippets for quick React and Redux component scaffolding
For React and React Native developers using Redux, this snippet extension speeds up writing components.
You type shortcuts like "rc" for a React class component or "rfc" for a React functional component, then press Enter to expand a full boilerplate component with prop types and imports.
This saves you from repetitive typing and helps maintain consistent component structure. It's especially useful when writing many components or Redux-connected components.
GitHub Copilot for AI-powered code suggestions and completions
The last and most powerful extension I show is GitHub Copilot. It uses AI to suggest code completions and even entire functions based on your comments or partial code.
I demonstrate by writing a function to calculate the difference in days between two dates. Copilot suggests the full implementation, which I can accept or cycle through alternatives.
Copilot requires a paid subscription after a free trial but can massively speed up development by reducing the need to search for code snippets or write boilerplate.
Resources

CourseReact Native course
Learn to build beautiful React Native apps with lifetime access to my complete course.

Premium resourcePro membership
Get access to exclusive tutorials, courses, and community support.
Like this article? Get the rest of the library plus weekly React Native tips. Free.