5

GitHub 新功能:Codespaces,随时随地编写代码

 3 years ago
source link: https://blog.mayandev.top/2021/08/14/tool/github-codespaces/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

GitHub 新功能:Codespaces,随时随地编写代码

发表于 2021-08-14

|

更新于: 2021-08-14

| 分类于 效率工具

| 0

| 阅读次数: 8

字数统计: 376

|

阅读时长 ≈ 1

GitHub 去年推出了一个 Codespace 功能,提供线上的编程环境,可以编写或者运行 GitHub 仓库中的代码。但此功能一直处于内测阶段,未对外开放。

直到今天,GitHub 在 Twitter 上宣布 Codespaces 现在已经开放给 GitHub Teams 和 GitHub Enterprise Cloud 上的所有人使用,可以为团队快速获得即用即付的托管开发环境。

如果满足资格的用户,可以在仓库的首页的 Code 按钮,看到这样的提示。

遗憾的是,此功能暂未对个人用户的仓库开放。

那么对于个人用户,GitHub 做了什么更新呢?

现在使用浏览器打开任意一个仓库,将链接中 github.comcom 替换为 dev,即可开启一个在线的 VSCode 编辑器,可以对工程代码进行查看和编辑。

另外也支持快捷键,在 GitHub 仓库页面点击键盘的 . 键,可以直接打开。

上面的在线编辑器只提供编辑功能,不提供运行环境,不过对于前端开发者来说,算是一个不错的福音。配合上 GitHub Action,为线上编程提供了更多的可能。

(默默地看了看角落里的 iPad )

另外,gitpod 也很早就支持在线编程,并且提供各种语言的运行环境。按小时计费,普通用户可以免费使用 50小时/月,感兴趣的读者也可以去体验一番。

欢迎关注我的公众号「Smart」
请我喝杯快乐水

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK