Using in Visual Studio Code
AI that understands your codebase in VS Code
Open your projectβs folder using Visual Studio Code.
Bito uses AI to create an index of your projectβs codebase. It enables Bito to understand the code and provide relevant answers. There are three ways to start the indexing process:
When you open a new project, a popup box will appear through which Bito asks you whether you want to enable indexing of this project or not. Click on the βEnableβ button to start the indexing process. You can also skip this step by clicking the βMaybe laterβ button. You can always index the project later if you want.

In the bottom-left of Bito plug-in pane, hover your mouse cursor over this icon. You can also enable indexing from here by clicking on the βClick to enable itβ text.

Another option is to open the "Manage Repos" tab by clicking the laptop icon in the top-right corner of the Bito plugin pane.

From here you can start the indexing process by clicking on the βStart Indexingβ button. Here, you will also see the total indexable size of the repository. Read more about What is Indexable Size?

Letβs start the indexing process by using any of the above-mentioned methods.
The status will now be updated to βIndexing in progress...β instead of βNot Indexedβ. You will also see the real-time indexing progress for the current folder, based on the number of files indexed.

Once the indexing is complete, the status will be updated from βIndexing in progress...β to βIndexedβ, and will look like this.

Now you can ask any question regarding your codebase by adding the keyword "my code" to your AI requests in the Bito chatbox. Bito is ready to answer them!
In case you ever want to delete an index then you can do that by clicking on this three dots button and then clicking the βDeleteβ button.

A warning popup box will open in the bottom of Bitoβs plugin pane. You can either click on the βDeleteβ button to delete the projectβs index from your system or click on the βCancelβ button to go back.

A Quick Example from a Real Project
For the sake of this tutorial, weβve created a simple βMusic Player using JavaScriptβ.
Hereβs how it looks:

We have added a bunch of songs to this project. The song details like name, artist, image, and the music file name are stored in a file called music-list.js

Question # 1
Letβs ask Bito to list names of all song artists used in my code

As you can see, Bito gave the correct answer by utilizing its understanding of our repository.
Similarly, we can ask any coding-related question like find bugs, improve code, add new features, etc.
Question # 2
Our music player is working fine, but we donβt have any option to mute/unmute the song.
Letβs ask Bito to add this feature.
Hereβs the question I used:
In my code how can i add a button to mute and unmute the song? By default, set this button to unmute. Also, use the same design as existing buttons in UI.

After adding the code suggested by Bito, hereβs how the music player looks when it starts (unmuted).

And when muted:

Last updated

