GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群


日前Github发布了GitHub Copilot,基于OpenAI的GPT-4,可以让AI辅助开发者进行更高效地工作。但它仅仅只是“GitHub Next”项目群的一员,这是怎么回事?

GitHub Next是什么?

GitHub Copilot其实只是“GitHub Next”推动的项目之一,放在GitHub Next项目群里,基于AI的GitHub Copilot是其中的第二个项目,整个项目群共有16个这样的项目,他们分别是:

项目开始日期当前状态项目说明
Flat Data2021/5/18PRODUCT在git或GitHub上轻松管理和操作数据集
GitHub Copilot2021/6/29PRODUCT由AI驱动的代码完成工具
Visualizing a Codebase2021/8/4USABLE PROTOTYPE代码可视化工具
React Webview UI Toolkit for VS Code2022/2/11PRODUCTReact组件可构建符合VS Code设计语言的Web UI
GitHub Copilot Labs2022/3/30USABLE PROTOTYPE提供GitHub Copilot的实验性功能
TestPilot2022/10/11USABLE PROTOTYPE自动生成单元测试的工具
Incremental CodeQL2022/10/11WIP借助语义代码分析引擎CodeQL分析代码,并可快速检测到可能存在的漏洞
GitHub Copilot for Your Codebase2022/10/13WIP可以认为是将私人代码库喂给Copilot以便可以得到更多建设性意见
GitHub Copilot Radar2022/10/13WIP基于Copilot的代码导航
Collaborative Workspaces2022/10/14NAPKIN SKETCH一种使用GitHub Copilot实现远程协作的工具
GitHub Blocks2022/11/9WAITLIST可定制和交互式的代码块
Code Brushes2023/1/11USABLE PROTOTYPE类似PS的笔刷工具
Copilot Voice2023/3/22WAITLIST通过语音操作GitHub Copilot
Copilot for CLI2023/3/22WAITLIST在终端使用GitHub Copilot
Copilot for Pull Requests2023/3/22WAITLIST让GitHub Copilot 处理拉取请求
Copilot for Docs2023/3/22WAITLIST支持文档的最佳答案

具体项目说明

Flat Data

Flat explores how to make it easy to work with data in git and GitHub。It builds on the “git scraping” approach pioneered by Simon Willison to offer a simple pattern for bringing working datasets into your repositories and versioning them, because developing against local datasets is faster and easier than working with data over the wire. — GitHub Next | Flat Data

Flat 探索如何在 git 和 GitHub 中轻松处理数据。它基于 Simon Willison 开创的“git scraping”方法,提供了一种简单的模式,将工作数据集引入您的代码库并进行版本控制,因为使用本地数据集进行开发比通过网络使用数据更快更容易。

Flat Data主要由以下三个功能组成:

  • Flat Editor:用于创建Flat Data工作流的图形界面。
  • Flat Action:GitHub Actions提供读取和转换数据的功能。
  • Flat查看器:从仓库中的平面文件中查看、过滤和共享数据的功能。

那么如何使用Flat Data?

首先,在Flat Editor中创建Flat Data工作流

图片[1] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

执行GitHub Actions以将读取的数据同步到GitHub存储库

图片[2] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

您可以在仓库中引用读取的数据

图片[3] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

将flat添加到GitHub仓库URL的开头,您可以通过以下GUI可视化数据:

图片[4] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

使用Flat Data,您可以轻松地在git或GitHub上管理和操作数据集。

GitHub Copilot

文章开头提到的,这是项目群的第二个项目,借助OpenAI GPT的智能模型,可以帮助开发人员提高编码效率和速度。

GitHub Copilot uses the OpenAI Codex to suggest code and entire functions in real-time, right from your editor. — GitHub Copilot · Your AI pair programmer

GitHub Copilot 利用 OpenAI Codex 实时从您的编辑器中提供代码和整个函数的建议。

Visualizing a Codebase

How can we “fingerprint” a codebase to see its structure at a glance? Let‘s explore ways to automatically visualize a GitHub repo, and how that could be useful. — GitHub Next | Visualizing a Codebase

我们如何“指纹”代码库以一眼看到其结构呢?让我们探讨一下自动可视化 GitHub 代码库的方法以及其有何用处。

Visualizing a Codebase是一种用于可视化代码库的工具。可以把代码库生成一个很多气泡组成的构成图

图片[5] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

React Webview UI Toolkit for VS Code

An ongoing collaboration with Microsoft to bring React to their library, Webview UI Toolkit for Visual Studio Code — GitHub Next | React Webview UI Toolkit for VS Code

与微软合作,将 React 引入他们的库,Webview UI 工具包,以用于 Visual Studio Code。

React Webview UI Toolkit for VS Code是VS Code的扩展,提供React组件的集合。借助它们,您可以轻松构建符合Visual Studio Code设计语言的Web UI。

图片[6] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

GitHub Copilot Labs

A VS Code extension for experimental applications of GitHub Copilot. — GitHub Next | GitHub Copilot Labs

一个用于 GitHub Copilot 实验应用的 VS Code 扩展程序。

GitHub Copilot Labs是VS Code的扩展,提供了以下4个功能。

  • 代码说明的生成
  • 代码翻译成另一种语言
  • 刷选代码(详情请参阅下面的Code Brushes)
  • 生成代码测试(稍后详细介绍TestPilot)
图片[7] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

TestPilot

TestPilot takes the pain out of writing unit tests. It uses GitHub Copilot‘s AI technology to suggest tests based on your existing code and documentation. Unlike many other tools, TestPilot generates readable tests with meaningful assertions, and it can iteratively improve its suggestions based on your feedback. — GitHub Next | TestPilot

TestPilot可以帮助你轻松编写单元测试。它使用GitHub Copilot的人工智能技术,根据你现有的代码和文档建议测试用例。与其他工具不同,TestPilot生成易读的测试用例,并且这些用例具有有意义的断言。而且,它可以根据你的反馈不断改进建议的测试用例。

TestPilot是VS Code扩展的GitHub Copilot Labs的一个功能。可以自动生成指定代码的单元测试。

图片[8] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Incremental CodeQL

The goal of the Incremental CodeQL project is to investigate techniques for improving the performance of the existing CodeQL query evaluator. Instead of having to re-analyze the whole code base from scratch, Incremental CodeQL reuses the previously computed analysis results and only re-analyzes the parts of the code base that are affected by a program change. This approach can lead to significant performance speed-ups without the need to make any changes to the analysis implementation — GitHub Next | Incremental CodeQL

Incremental CodeQL 项目的目标是探索提高现有 CodeQL 查询评估器性能的技术。与从头开始重新分析整个代码库不同,增量式 CodeQL 重复使用先前计算的分析结果,并仅重新分析受程序更改影响的代码库部分。这种方法可以显著提高性能速度,而无需对分析实现进行任何更改。

借助语义代码分析引擎CodeQL,Incremental CodeQL可以通过Pull Request分析代码更改的增量,从而使开发人员能够快速收到漏洞检测通知。

GitHub Copilot for Your Codebase

When editing, GitHub Copilot only knows about the contents of your current file and possibly a few other open tabs, rendering it blind to important type definitions, patterns and greater connections in your codebase. We want to let GitHub Copilot see your entire repo when it comes up with its suggestions. — GitHub Next | GitHub Copilot for *Your* Codebase

在编辑时,GitHub Copilot 只了解您当前文件的内容和可能打开的几个其他标签页,这使其无法识别代码库中重要的类型定义、模式和更广泛的连接。我们希望让 GitHub Copilot 在提供建议时能够看到您整个仓库的内容。

GitHub Copilot for Your Codebase允许GitHub Copilot通过学习开发人员的(Your)代码库,提出与您要完成的任务相关的私有片段。

GitHub Copilot Radar

GitHub Copilot Radar supports code navigation with a constantly updated view of other code locations most relevant to the one you‘re currently viewing or editing. As a jump-to-definition on steroids, it leverages both static analysis and GitHub Copilot‘s neural reasoning to make sure developers get the background they need about the code they touch. — GitHub Copilot Radar

GitHub Copilot Radar 支持代码导航,并提供一个不断更新的视图,显示与您当前查看或编辑的代码最相关的其他代码位置。作为超级版的跳转到定义功能,它利用了静态分析和 GitHub Copilot 的神经推理,确保开发人员能够获得有关他们接触的代码的背景信息。

GitHub Copilot Radar会在代码中的相关为止提供其他代码位置导航的功能给到开发人员。

图片[9] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Collaborative Workspaces

As we increasingly work together remotely, how might we unify our workflows to enable remote collaboration for developers? GitHub Next explores what “working together” means, beyond multiple cursors and a shared code editor. — GitHub Next | Collaborative Workspaces

随着我们越来越多地远程协作,我们如何统一我们的工作流程,以实现开发人员的远程协作?GitHub Next 探索了“共同工作”意味着什么,不仅仅是多个光标和共享代码编辑器。

Collaborative Workspaces是一种使用GitHub Copilot实现远程协作的工具。它可以通过Visual Studio Code的Live Share扩展来共同编辑代码,还可以在集成的工作空间环境中进行设计、文档和任务管理,从而增强团队协作。

图片[10] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

GitHub Blocks

Extend your codebase with custom, interactive blocks. Build rich documentation, enhance your workflows, and bring your repository to life. — GitHub Blocks

使用自定义交互式块扩展您的代码库。创建丰富的文档,增强工作流程,并让您的代码库更加生动。

GitHub Blocks允许自定义交互式块中扩展代码库。

图片[11] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT
图片[12] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Code Brushes

Can editing code feel more tactile, like painting with Photoshop brushes? We added a toolbox of brushes to our Visual Studio Code extension that can modify your code. — GitHub Next | Code Brushes

编辑代码能否更像使用 Photoshop 刷子进行绘画一样具有触觉感?我们为 Visual Studio Code 扩展添加了一组刷子工具箱,可以修改您的代码。

就像PS中的笔刷工具一样,Code Brushes是GitHub Copilot Labs的其中一个功能,并作为Visual Studio Code的扩展,从而实现类似笔刷工具那样可以更改代码,提供可读性,修复错误等功能的工具箱。

图片[13] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Copilot Voice

Write code without the keyboard. Difficulty typing? Use your voice to code without spelling things out by talking with GitHub Copilot. — GitHub Next | Copilot Voice

无需键盘编写代码。打字困难?使用您的声音与 GitHub Copilot 交流,编写代码时无需拼写。

Copilot Voice是一种语音操作GitHub Copilot的功能。可以实现脱离键盘只使用语言写代码、操作IDE等。

图片[14] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Copilot for CLI

Ever having trouble remembering that shell command or this obscure flag? Don‘t worry: we’re building GitHub Copilot assistance right into your terminal. — GitHub Next | Copilot for CLI

有没有遇到过记不住某个 shell 命令或这个晦涩的标志?别担心:我们正在将 GitHub Copilot 助手直接集成到您的终端中。

Copilot for CLI终端工具,是GitHub Copilot的其中一项功能。

图片[15] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

Copilot for Pull Requests

Pull requests are a central part of the GitHub user experience. Copilot for PRs brings the power of Copilot to the PR experience, to help you write better PR descriptions, and to help your team review and merge PRs faster. — GitHub Next | Copilot for Pull Requests

拉取请求是 GitHub 用户体验的核心组成部分。Copilot for PRs 将 Copilot 的能力带到拉取请求体验中,帮助您编写更好的拉取请求描述,并帮助您的团队更快地审核和合并拉取请求。

Copilot for Docs

Whether you‘re learning a new library or API or you’ve been using it for years, it can feel like the documentation gets in your way more than it helps. Maybe the tutorials are too basic, or the reference manual is too sketchy, or the relevant information is split across multiple pages full of irrelevant details.

We‘re exploring a way to get you the information you need, faster. By surfacing the most relevant content for questions with tailored summaries that help connect the dots, Copilot for docs saves developers from scouring reams of documentation. — GitHub Next | Copilot for Docs

无论您是在学习新的库或 API,还是已经使用它多年,文档似乎都会比帮助更多地妨碍您。也许教程太基础,参考手册太简略,或者相关信息分散在充满无关细节的多个页面中。

我们正在探索一种更快地获取所需信息的方法。通过提供最相关的内容,以帮助连接相关内容的定制摘要,Copilot for docs 可以帮助开发人员避免查阅大量文档。

Copilot for Docs是GitHub Copilot其中的功能,可以在读取文档后提供答案支持的功能。

图片[16] - GitHub Copilot只是开胃菜,GitHub Next 是提升下一代开发体验的王牌项目群 - EVLIT

© 版权声明
THE END
喜欢就支持一下吧
点赞13 分享
评论 抢沙发
头像
说说你的看法!
提交
头像

昵称

取消
昵称表情代码图片

    暂无评论内容