Codebase Search in CodeStudio v2.0.0
This article explains how to search and query your codebase in CodeStudio v2.0.0 and later versions using the updated #codebase tool.
WHY MIGRATION IS NEEDED
- In earlier versions of CodeStudio, users could query or get context about their codebase by typing @codebase in the chat box or by using the Add context button and selecting the codebase option.
- In the current version, this functionality has been moved.
- It is now accessed by typing # in the chat input box and selecting #codebase from the dropdown menu.
Resolution Steps
Step 1: Load the Codebase
Ensure that your desired codebase is loaded and active in the CodeStudio IDE. The #codebase tool only accesses the currently opened project.
Step 2: Open the Chat Panel
Navigate to the chat panel within CodeStudio where you interact with the AI assistant.
Step 3: Select #codebase
- In the chat input box, type #.
- A dropdown menu will appear with available options.
- From this dropdown, select #codebase.
Step 4: Ask About the Codebase
After selecting #codebase, add specific questions or requests such as:
- Explaining the codebase
- Searching for functions, variables, or files
Send the prompt and review the response, which will include relevant details from the codebase. If needed, refine your query for more precise results.
✅ With these steps, you can efficiently query and explore your codebase in Code Studio v2.0.0 using the updated #codebase tool.