# 将开源代码库VTable作为上下文添加到 GitHub Copilot Spaces

**URL:** <https://group.xinheyun.com/t/topic/613>\
**Category:** 技术分享\
**Created:** [2025 年10 月 8 日 13:40 UTC](https://group.xinheyun.com/t/topic/613 "2025-10-08T13:40:41Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

作者： ![chen.weiyan](https://avatars.discourse-cdn.com/v4/letter/c/90db22/32.png) [@chen.weiyan](https://group.xinheyun.com/u/chen.weiyan)\
发布日期： [2025 年10 月 8 日 13:40 UTC](https://group.xinheyun.com/t/topic/613/1 "2025-10-08T13:40:41Z")

</div>

> [GitHub - VisActor/VTable: VTable is not just a high-performance multidimensional data analysis table, but also a grid artist that creates art between rows and columns.](https://github.com/VisActor/VTable) 代码库包含源码和官方示例文档

## 1.关于 GitHub Copilot Spaces

Copilot Spaces 使你能够组织 Copilot 用于回答你的问题的上下文。

[关于 GitHub Copilot Spaces](https://docs.github.com/zh/copilot/concepts/context/spaces)

## 2.创建 GitHub Copilot Spaces

创建空间以组织并集中相关内容，为特定任务提供正确上下文，从而让 Copilot 的响应更具针对性。

[创建 GitHub Copilot Spaces](https://docs.github.com/zh/copilot/how-tos/provide-context/use-copilot-spaces/create-copilot-spaces)

 ![创建 GitHub Copilot Spaces](https://canada1.discourse-cdn.com/flex011/uploads/xinheyun/original/1X/2487ba79f35b24e68d38c70a89e0e576b770cd05.png)

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/xinheyun/original/1X/c6316fac4935c1decbcf8d5301b1d8b252a41c8d.png)

## 3.在 Visual Studio Code 中设置 GitHub MCP 服务器

远程 GitHub MCP 服务器默认使用一键式的 OAuth 身份验证

安装vscode插件：[GitHub MCP Server](https://github.com/mcp/github/github-mcp-server)

[使用 GitHub MCP 服务器](https://docs.github.com/zh/copilot/how-tos/provide-context/use-mcp/use-the-github-mcp-server)

 ![GitHub MCP Server](https://canada1.discourse-cdn.com/flex011/uploads/xinheyun/original/1X/8119f439b71ba81e47f8e6916251cbd327b8bf51.jpeg)

## 4.使用 GitHub Copilot Spaces

使用空间为特定任务提供正确上下文，从而让 Copilot 的响应更具针对性。

- 在 IDE 中，打开 Copilot 对话助手，然后在模式下拉列表中选择“智能体”，或者选择“智能体”选项卡\*\*\*\*\*\*\*\*。

- 在“Copilot 对话助手”框中，输入一条提示，并在其中引用要用作上下文的空间。 如果知道空间的确切名称以及拥有该空间的用户或组织的名称，则可以提供相应名称。 否则，Copilot 将自动使用 list\_copilot\_spaces 工具来查找与你所提供名称或文本相匹配的空间，并访问这些空间的上下文。

[使用 GitHub Copilot Spaces](https://docs.github.com/zh/copilot/how-tos/provide-context/use-copilot-spaces/use-copilot-spaces)

 ![image](https://canada1.discourse-cdn.com/flex011/uploads/xinheyun/original/1X/8ca9a54eb91ea1995d7e65a7f2844a408d35236d.jpeg)
