VS Code Extensions for React Native Developers

Sanjana Human In Tech
4 min readDec 31, 2023
Visual Studio code

If you are a React developer using VS Code as your primary code editor, you will probably like to take advantage of the VS Code extensions.

In this article, I’ll help you choose the best VS Code extensions to improve your React development environment.

The initial set of extensions I opted for were all geared towards aiding me in crafting well-structured and easily comprehensible code:

  • ES7+ React/Redux/React-Native SnippetsThis is a highly popular extension among React and React Native developers. It offers shorthand prefixes that accelerate development by generating code snippets and syntax for React, Redux, GraphQL, and React Native. This extension significantly boosts the development process.-
  • Simple React SnippetsIt offers a collection of curated React code snippets that can be effortlessly incorporated into your code with just a few keystrokes.
  • Babel JavaScriptThis extension is fundamental for maintaining proper coding style, especially as we’ll be utilizing “future-JS” (ES6+).
  • ESLintA linter serves as a code analysis tool that guides you in enhancing your code quality. Delve into this link for a more comprehensive explanation of its functionality.
  • Prettier — Code formatterPrettier enforces a consistent code style by parsing and reformatting your code according to its predefined rules. It ensures uniformity, considers maximum line length, and intelligently wraps code when required.
  • Prettier ESLintLinters encompass both code quality and stylistic rules. However, Prettier should handle formatting, and linters should address quality. Avoid conflicts by utilizing Prettier for formatting and linters for quality.

Once the core tools are set up, it’s time to explore the marketplace for various extensions. In my perspective, these extensions provide valuable additional functionalities that significantly contribute to enhancing my workflow.

Here are three VS Code extensions that can help simplify tag management:

  1. Auto Close Tag — Automatically insert HTML/XML close tags.
  2. Auto Rename Tag — This extension automatically renames paired HTML/XML tags when one is edited. It saves time and ensures consistency in your code.
  3. Auto Complete Tag — Combine the functionalities of Auto Close Tag and Auto Rename Tag extensions.

Here are three VS Code extensions that can significantly simplify Git usage and enhance version control workflows:

  1. Git Graph — With Git Graph, you can visualize the Git history of your repository through an interactive graph. This extension empowers you to effortlessly execute various Git actions directly from the graph interface. What’s more, it offers customization options to tailor the visual representation according to your preferences.
  2. GitLens — Git superchargedGitLens is another extensively employed VS Code extension that offers an array of functionalities associated with version control. This extension allows you to navigate and delve into code repositories effortlessly, offering a quick overview of code authorship. Moreover, it provides valuable insights through visually rich representations and more.
  3. Git Blame — This extension proves invaluable in collaborative projects, revealing the contributors behind specific code changes. While it’s an excellent resource for understanding code origins, remember that it’s a tool that offers insights into authorship — use it judiciously!

Here are a few additional extensions that I find beneficial to use.

  1. Color Highlight — This tool is particularly handy when working with HEX colors. It provides a visual preview right where you’re typing, making it easier to recall and understand the exact color you’re using.
  2. Path Intellisense — This small but powerful extension comes to the rescue when writing paths for importing components, containers, images, and more. It significantly reduces the likelihood of errors in your paths, ensuring a smoother development experience.
  3. SVG Preview — It enables real-time editing of SVG files and SVGs within files. It offers dynamic panning and zooming capabilities for previews.
  4. Image Preview — This extension exhibits an image preview both in the gutter area and upon hover.
  5. Code Spell Checker — This extension is a true blessing for individuals like me who occasionally make typos and grammar mistakes in their code. It acts as a vigilant spell checker, ensuring code quality remains consistent.
  6. Search node_modules — This straightforward VS Code plugin facilitates swift navigation within your project’s node_modules directory. Often, the node_modules folder is excluded from the built-in search in VS Code. As a result, locating and opening/editing a file within node_modules can become a manual and cumbersome process, especially with larger node_modules directories. This plugin effectively eliminates this hassle by providing efficient navigation and ease of access to these files.
  7. Markdown All in OneAll-in-one solution for Markdown writing, offering keyboard shortcuts, table of contents generation, automatic preview, and more.

Each developer customizes their IDE’s appearance to suit their preferences. Some prefer bright themes, while others opt for a terminal-like UI. Personally, I lean towards darker or occasionally light/mixed themes for my coding environment.

Color Themes — Here are the themes I rely on most frequently:

  1. Palenight Theme — A stylish and vibrant material-inspired theme that adds an elegant touch to Visual Studio Code.
  2. GitHub Theme — A Visual Studio Code theme that mirrors the look and feel of GitHub’s interface.
  3. Material Theme — An extraordinary theme for Visual Studio Code that stands out as one of the most impressive choices available.

Palenight Theme holds a special place as one of my favorites.

  1. Feather Product IconsA set of product icons inspired by the Feather icons, designed to enhance your Visual Studio Code experience.
  2. Material Theme Icons — The definitive icons theme for both Visual Studio Code and Material Theme, offering an exceptional visual experience.

Thank you for reading this article! Don’t forget to clap.

If you have any queries related to ReactNative, I’m always happy to help you. You can reach me on LinkedIn and Gmail.

--

--

Sanjana Human In Tech

A React Native front-end enthusiast and dedicated development engineer, eager to expand knowledge on development techniques and collaborate with others.