CyberSEO Pro plugin for WordPress

Awesome VS Code Extensions for Navigating Large Codebases

Read Time:4 Minute, 14 Second

VS Code is one of the best and most popular code editors among developers. According to StackOverflow’s 2022 Developer Survey, 74.48% of developers use VS Code as their IDE(Integrated Development Environment). If you haven’t tried it yet, I recommend you give it a try.

One of the best features of VS Code is its highly customizable and can perform a variety of tasks with extensions. There are more than 30K extensions on their marketplace but few among them are worth trying out for navigating through large codebases or for better code readability.

So, today I am going to list down some awesome VS Code extensions that you can try and improve your coding efficiency. I will be going through some obvious addition with some other interesting and useful extensions too.

Navigate through your large codebases with Documatic codesearch.

Awesome VS Code Extensions for Navigating Large Codebases

Documatic is a codesearch tool that let you query through your codebase. Ask documatic as you will ask your project manager/code maintainer. It will provide you most relevant code block related to your query.

It is very easy to use as you just need to connect your codebase to their platform. They have support for GitHub, BitBucket, and GitLab. After connecting, and installing documatic, just click on Ctrl + K to search through the codebase.

You can use it for open-source contributions when you need to understand the new codebase. It can also be helpful while onboarding new developers to any project. In general, codesearch can help understand any large codebase with personalized queries.


Code as fast as you think

Blackbox Demo

Code generators are gaining more popularity these days. Blackbox is one such tool that generates/recommends code. It will be useful in quickly generating code when you have to make quick edits. You can also refer to the generated code and write your code using the reference code. It can also be used for looking at a different way of solving any problem with different codes.

It’s quite easy to generate code with Blackbox by just writing your query after // and ending the query with ? Quotation mark. The query can be in natural language, for instance, “Code for palindrome number in nodeJS”. This will generate the code in JavaScript, you can mention different programming languages too. With Tab, you can change to a different code recommendation.

Since GitHub co-piolet is going to be paid soon, you can give it a try to Blackbox for generating your code.


GitLens simply helps you better understand code.

GitLens

If you work in a team, this extension will be very helpful. As you can navigate to previous changes, visualize commit-graph and History view, and much more features. It uses Git to track all the changes under the hood, so you need to have git initialized in your repository.

After installing the extension, you will have a File Annotations button on the right-hand side of the upper-status bar. Using the button, you can file for Blame, Heatmap, and Changes. With Blame you can see when the last time that line was edited and who edited it.

One of the cool features of it is the revision-history. With this, you can compare your code with previous commits. The previous code will be open adjacent to the current code.


Improve your code commenting by annotating with alerts, informational, TODOs, and more!

Better Comments

Writing good comments is one of the practices for achieving a clean code. Good comments will let the reader know the purpose of the code and inform about future updates with a TODO. With this extension, you can highlight your comment with different colors for different purposes. This will make your comments more readable to humans and with colors they can identify their purpose.

You just need to prefix your comments with symbols. For instance:

Symbols Purpose
* Important Information
! Alert
? Question
TODO: To add a todo task

You can customize the color of the comments too. Using this with GitHub co-piolet will result in better comments and highlights.


Code formatter using prettier

Prettier Demo

One of the best code formatter extensions on VS Code marketplace is Prettier. It’s easy to set up and use as it doesn’t require a lot of setting up. You just need to change your Default Formatter to Prettier from the User setting.

This extension will be very handy for those who struggle with code formatting. With well-formatted code, the reader of the code can easily understand the code and its purpose without putting much attention.

On every save, prettier will run for formatting the code. It has support for most of the popular languages. You can use plugins for other languages.


The above list of extensions is awesome and I have used all of it. I will recommend you try them out and check what best fits with your VS Code.

I hope this article has helped you in finding some amazing and interesting extensions for your VS Code. Thanks for reading the blog post.

Source: https://dev.to/surajondev/awesome-vs-code-extensions-for-navigating-large-codebases-256n

How to use Docker without Docker Desktop on MacOS 📦 Previous post How to use Docker without Docker Desktop on MacOS 📦
9 Docker Extensions Every Developer Must Try Next post 9 Docker Extensions Every Developer Must Try

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.