What is Cody
Cody is a code search browsing tool “Sourcegraph” launchedAI Code Assistanthelp developers write code and answer questions by reading the entire code base and code diagram. Cody uses Sourcegraph’s code diagram andLarge Language Models (LLMs)The combination of cumbersome tasks in manual development and maintain the developer’s workflow.
You can think of Cody as your code assistant. The automatic programming tool has read all the code in open source, all the questions on StackOverflow, and the entire code base of developers, and can answer questions encountered during development or suggest some methods based on previous knowledge.
Cody’s main functions
Cody is like the code editor ChatGPTcan help you program better and faster.
- Artificial intelligence generates code. Cody can generate everything from boilerplate code to API parser based on the context and style of the code base, and can also fix errors, readability, or unhandled edge cases of code blocks.
- Automatically generate unit tests. Cody can write unit tests, saving developers time to focus on building software.
- Explain the code information. Cody can explain the role of code at a high level or in detail, highlighting any code block or entire file to explain what is going on in dialogue language.
- Programming language translation. Developers can provide code snippets to Cody, such as a function. Cody can translate the code, providing snippets of code in another language with the same functionality.
How to use Cody
Using Cody is very simple, and Cody can be used in Sourcegraph’s web pages and VS Code.
- Install the Cody extension for VS Code
- Open Cody (from the activity bar or Alt+/or Opt+/) and log in
- Click Chat or Recipes (some built-in commands) to use