Skip to content
| Marketplace
Sign in
Visual Studio Code>Education>Agent LearningNew to Visual Studio Code? Get it now.
Agent Learning

Agent Learning

test-plugins

| (0) | Free
在 VS Code 中通过动手练习学习 Agent 开发。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Agent Learning

在 VS Code 中学习 Agent 开发的教程扩展。第一课用 JavaScript 演示如何从请求中选择工具、执行工具并返回结果。示例可以离线运行。

本地开发

准备桌面版 VS Code 1.74 或更高版本,以及能运行 npm 和 TypeScript 的 Node.js。

  1. 用 VS Code 打开本项目根目录,在终端运行 npm ci。
  2. 按 F5,选择「运行 Agent Learning」。VS Code 会先编译,再打开扩展开发宿主窗口。
  3. 在新窗口打开命令面板(macOS 为 ⌘⇧P,Windows/Linux 为 Ctrl+Shift+P),运行 Agent Learning: 打开 Agent 开发教程。

单次构建使用 npm run compile,开发时可以用 npm run watch 持续编译。

项目结构

路径 用途
package.json 声明扩展、入口、命令和构建脚本
src/extension.ts 注册命令,打开内置 Markdown 预览
lessons/01-first-agent.md 第一课的可运行示例和练习
.vscode/launch.json 和 .vscode/tasks.json 配置 F5 调试及编译任务
tsconfig.json 配置 TypeScript,将编译产物输出到 out/

新增课程时,可以在 lessons/ 下添加 Markdown 文件,再扩展 src/extension.ts 的命令处理逻辑。

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft