Lingma cookbook
For readers who can already sign in and accept a completion. Install is in the tutorial. Keys are in the cheatsheet.
Pick the chat mode
| Job | Mode | Official reason |
|---|---|---|
| Explain this React component | Ask | "Does not edit project files" |
| Change a named set of files and review the diff | Edit | Precise, faster than Agent |
| Add a feature: edit + install + test | Agent | Can plan, use the terminal, call MCP |
| Multi-file edits in Lingma IDE / JetBrains | Agent (there is no Edit) | Official: those clients do not support Edit |
| Visual Studio | Ask | Official: Ask-only for now |
If you can spot a wrong edit at a glance, use Agent. Otherwise start in Ask.
Sources: Chat overview, Edit, Agent.
Write the task the way the docs ask
Official text (Chat overview):
结构化地描述需求:首先需要澄清我们需要通义灵码帮我们做什么,建议包含一个明确的目标,并通过步骤式的结构化描述,详细地描述您期望完成的编码任务和要求。
给出相关的上下文:可以选择代码文件、图片、codebase、codeChanges 等上下文。
明确生成要求:告诉通义灵码您期望它遵循的要求,比如语言、规范、格式、变更目标等,如“生成变更时,同时为每个方法生成英文注释”。
多多互动,逐步迭代。
Template (structure from those four bullets):
Goal: add lastActiveAt sorting to src/components/UserTable.tsx.
Steps:
1. Change the existing component only
2. Default descending; click the header to toggle
3. Add TypeScript types; no any
Requirements:
- Add English comments for every method you change
- Do not touch the API layerThen attach files / images / codebase. Lingma IDE context does not support the knowledge base yet (same official page).
Agent mode can expand a draft prompt via the optimize-input control (Agent). Read the expanded prompt before you send it.
Run an Agent task that has side effects
- Switch to Agent.
- State the goal and the hard boundary.
- For a complex task, wait for a plan or send
/plan. - When a terminal command appears, click Run only if you understand it.
- Accept or reject each file in the diff.
Official auto-run allowlist (Agent):
具体配置路径为插件 Chat 设置页面的 Auto-Run 区域,在 Terminal in Agent Mode 下方的输入框中添加允许自动运行的命令。如需添加多个命令,可以使用英文逗号分隔。
Do not put rm, git push, or npm publish on that list in week one.
If Agent cannot start a terminal in VS Code, read Terminal exceptions: the VS Code plugin needs the Shell Integration API, VS Code > 1.93, and a supported default shell. That is a different floor from the 1.68.0 install requirement.
Attach MCP
Official boundary (MCP guide):
MCP(Model Context Protocol)是一种开放标准协议,使其智能体的能力和场景得到拓展。
Markets: ModelScope MCP, Higress MCP.
Example jobs: database schemas / DAO, online docs, design-to-code.
Official path into the MCP page in IntelliJ (MasterGo recipe):
- Open chat from the sidebar icon.
- Open MCP: the MCP tools link on the welcome line, or avatar → Personal settings → MCP.
- Switch to Agent, then write the prompt.
- Confirm each MCP call. The result becomes later context.
Do not paste third-party JSON from blog posts as if it were official config. Copy only what the MCP guide shows.
Turn on Next Edit Suggestion (NES)
Official definition (NES): predict the next change from full-file context, recent edits, and the caret. Tab accepts, Esc rejects.
Same page: open personal settings with ⌘ ⇧ , (macOS) or Ctrl Shift , (Windows) and enable NES. Qoder CN IDE only supports Auto mode.
IDE changelogs later rename NES to NEXT. Trust the label in your installed client.
Pitfalls
| Symptom | Check | Source |
|---|---|---|
| Marketplace search misses the plugin | Old page says TONGYI Lingma; Help Center says Qoder CN | Download, Install |
| No VS Code sidebar icon | Right-click the activity bar, enable Qoder CN | Install |
| No Edit mode in JetBrains / Lingma IDE | Use Agent | Chat overview |
| Agent cannot run the terminal in VS Code | VS Code > 1.93 + supported shell integration | Terminal exceptions |
| Old Lingma IDE missing new features | Uninstall Lingma IDE, install Qoder CN IDE | Billing |
| Using it as Qwen chat | Wrong product. See the map | qianwen.com |