5 VS Code Extensions That Should Be Built In
In this article
- Why These Five Stand Out
- GitLens: Supercharging Git
- Prettier: Consistent Formatting Without Debate
- ESLint: Catching Errors Before They Happen
- Live Share: Real-Time Collaboration
- Path Intellisense: Navigate Files Faster
- How to Choose and Configure
- Common Problems and Misconceptions
- Frequently Asked Questions
Five Visual Studio Code extensions are so universally useful that they arguably should be built into the editor: GitLens, Prettier, ESLint, Live Share, and Path Intellisense. These tools address core development needs—code comprehension, consistent formatting, error prevention, real-time collaboration, and faster file navigation—that every developer encounters, yet they remain optional installs. This article explains why each one matters, how they work, and what you should consider before adopting them.
Why These Five Stand Out
VS Code ships with a robust feature set: IntelliSense, debugging, integrated terminal, and basic Git integration. However, the extensions below fill gaps that the core editor leaves open. They are not niche tools for specific frameworks; they are general-purpose utilities that improve daily workflow for most developers, regardless of language or stack.
- GitLens – turns the built-in Git support into a powerful code-annotation tool.
- Prettier – enforces consistent code style automatically.
- ESLint – catches errors and style issues in JavaScript/TypeScript as you type.
- Live Share – enables real-time collaborative editing and debugging.
- Path Intellisense – autocompletes file paths in imports and strings.
Each has a large user base and is actively maintained, making them safe bets for any developer.
GitLens: Supercharging Git
VS Code’s built-in Git support lets you stage, commit, and view diffs, but it does not show you who wrote a line or why. GitLens fills that gap by providing inline blame annotations, a commit history explorer, and the ability to compare branches and commits. When you hover over a line, you see the commit message, author, and date. This is invaluable for understanding unfamiliar codebases or reviewing your own work months later.
GitLens also adds a File History view and a Search Commits feature, making it easier to track changes. While some advanced features are now paid, the core functionality remains free and is more than sufficient for most users.
Prettier: Consistent Formatting Without Debate
Formatting arguments are a classic time-waster. Prettier is an opinionated code formatter that parses your code and reprints it according to a fixed set of rules. It removes the need to manually align code or argue over style. Once installed and configured as the default formatter, you can format on save, ensuring every file in the project looks the same.
Prettier supports JavaScript, TypeScript, CSS, HTML, JSON, Markdown, and many other languages. It integrates with VS Code’s built-in formatting infrastructure, so you can trigger it with the standard format command. The key benefit is that it eliminates a class of code review comments entirely.
ESLint: Catching Errors Before They Happen
ESLint is a static analysis tool for JavaScript and TypeScript. It identifies problematic patterns, such as unused variables, undefined functions, or risky type coercion. The VS Code extension runs ESLint in the background and underlines issues in the editor, often with quick fixes. This immediate feedback is far more efficient than waiting for a build or a code review.
While Prettier handles formatting, ESLint focuses on correctness and best practices. The two complement each other: Prettier formats, ESLint checks. Many projects configure both, with ESLint handling rules that Prettier does not cover, such as no-unused-vars or no-debugger.
Live Share: Real-Time Collaboration
Live Share allows multiple developers to share a workspace in real time. You can invite a colleague to view or edit the same files, share a terminal, or even debug together. This is particularly useful for pair programming, remote code reviews, or helping a teammate debug an issue. The session is encrypted, and participants do not need to clone the repository; they get a read/write view of the files as if they were local.
Live Share is built on top of VS Code’s extension API and uses a relay service to establish connections. It works across platforms and even supports sharing with users on other editors like Visual Studio. For distributed teams, this extension is a game-changer.
Path Intellisense: Navigate Files Faster
When you type an import or a file reference, Path Intellisense autocompletes the path based on your project structure. This saves time and prevents typos that break builds. It works in JavaScript, TypeScript, HTML, CSS, and many other contexts. The extension scans your workspace and suggests relative paths as you type.
While VS Code has some built-in path suggestions, Path Intellisense is more aggressive and works in more places, such as inside strings or comments. It is a small utility that pays off daily, especially in large projects with deep folder structures.
How to Choose and Configure
All five extensions are free and available in the VS Code Marketplace. You can install them from the Extensions view (Ctrl+Shift+X) by searching for their names. After installation, you may need to configure them:
- For Prettier, set it as the default formatter and enable “Format on Save” in settings.
- For ESLint, ensure your project has an ESLint configuration file (e.g., .eslintrc.json).
- For GitLens, most features work out of the box; you can adjust inline annotations in settings.
- For Live Share, sign in with a Microsoft or GitHub account to start sessions.
- For Path Intellisense, it usually works immediately; you can toggle it for specific languages in settings.
If you are unsure whether an extension is right for you, start with just one or two. You can always disable them later without affecting your code.
Common Problems and Misconceptions
A frequent misconception is that Prettier and ESLint conflict. In reality, they solve different problems. However, you may see overlapping rules (e.g., quote style). The solution is to disable formatting rules in ESLint and let Prettier handle them, using the eslint-config-prettier package.
Another issue is performance. GitLens can slow down on very large repositories because it queries Git history frequently. If that happens, you can disable some features like inline blame or use the “GitLens: Toggle Code Lens” command.
Live Share requires a network connection and may have issues behind strict firewalls. In such cases, use the built-in “Live Share: Start Collaboration Session” and ensure the necessary ports are open.
Finally, do not assume these extensions are mandatory. Some developers prefer minimal setups and use alternatives like built-in Git features or other formatters. The key is to find what works for your workflow.
Frequently Asked Questions
Are these extensions safe to install?
Yes, all five are published by reputable organizations (GitKraken, Prettier, ESLint, Microsoft, and a community developer respectively) and have millions of installs. Always check the extension’s marketplace page for the publisher and review the code if you are concerned.
Do I need both Prettier and ESLint?
It is recommended. Prettier handles formatting, while ESLint catches logic errors and anti-patterns. They serve different purposes and work well together. If you only use one, you will miss the other’s benefits.
Can I use GitLens without Git?
No, GitLens requires a Git repository to function. If you are not using Git, the extension will not provide any value. However, most development projects use Git, so it is widely applicable.
Does Live Share work across different operating systems?
Yes, Live Share works across Windows, macOS, and Linux. Participants can join from different platforms, and the session remains synchronized.
Are there any alternatives to these extensions?
Yes, there are alternatives for each: Git Graph for Git visualization, StandardJS for linting, and Live Server for local development. However, the five listed are the most popular and well-supported.
Will these extensions slow down VS Code?
Generally, no, but GitLens can have a minor impact on large repositories. You can mitigate this by disabling specific features. Prettier and ESLint only run on files you open, so their overhead is minimal.