Syntax lookup, reading old code and writing boilerplate break the rhythm most. Baidu Comate is Baidu's coding assistant, a plugin for editors and its own toolchain: inline and block completion, explain selected code, ask about errors, generate unit tests, with a smooth path for Chinese requirements and comments. A free quota applies; supported editors and features follow the official page. Test generated code before merging and keep internal APIs, keys and real data out of chat.
What it does
- Inline and block completion from the current file context
- Explain selected code, write comments, rewrite from Chinese requirements
- Paste errors and stack traces for troubleshooting direction
- Generate unit tests and common utility functions
- Plugin install without switching editors
Who it is for
- Staying in the current editor instead of switching tools
- Understanding call relationships in inherited modules quickly
- Repeated boilerplate such as API wrappers and parameter checks
- Projects whose requirements and comments are all in Chinese
How to get started
- Install the plugin, sign in, and start with inline completion only
- Try explanation and test generation on real legacy code to see if context is read
- Enable chat as needed; never paste sensitive code or keys