mirror of
https://github.com/LCTT/TranslateProject.git
synced 2025-01-25 23:11:02 +08:00
Translation finishing
This commit is contained in:
parent
069df783f6
commit
88ace3653b
@ -1,139 +0,0 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (nophDog)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (7 open source alternatives to VS Code)
|
||||
[#]: via: (https://opensource.com/article/20/6/open-source-alternatives-vs-code)
|
||||
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
|
||||
|
||||
7 open source alternatives to VS Code
|
||||
======
|
||||
Avoid Microsoft's proprietary VS Code build and opt for an open source
|
||||
code editor instead.
|
||||
![Person using a laptop][1]
|
||||
|
||||
Visual Studio Code, also known as VS Code, is a code editor for Linux, Windows, and macOS. It's the kind of editor that walks the line between editing text and managing your entire codebase, like an integrated development environment (IDE). It's extensible through plugins and has proven to be a reliable text editor that's easily beaten out formidable non-open rival editors.
|
||||
|
||||
Microsoft released VS Code as open source, but the version you download from Microsoft is not open source. However, you have several options for using VS Code as open source or selecting one of its open source alternatives.
|
||||
|
||||
### Building VS Code as open source
|
||||
|
||||
VS Code's source code is available [on GitHub][2]. Yet when you download the VS Code application [from Microsoft][3], you'll find that your download is licensed under the [Microsoft Software License][4]. This isn't an open source license. The difference is in the build process.
|
||||
|
||||
Chris Dias, a Microsoft developer on the VS Code project, [makes a comparison][5] between VS Code and, for instance, the Chrome browser and its open source "upstream" project, [Chromium][6]. VS Code is indeed built upon an open source codebase. The official Microsoft-branded release is customized with Microsoft-specific functionality, including a trademark, an extensions gallery, a proprietary C# debugger, and telemetry. But when you clone and build the code yourself, none of these targets is configured, so you generate a "clean" version, which is called Code - OSS (OSS stands for open source software).
|
||||
|
||||
In practice, the differences between VS Code and Code - OSS are minimal. Most notably, VS Code includes telemetry, which is tracking software. It's unlikely that Microsoft is literally tracking your every move, and there's lots of software out there these days that gathers usage data. Whether or not you care about VS Code's telemetry is up to you. If you'd rather do without the usage tracking, here are some great (and open source) alternatives to VS Code.
|
||||
|
||||
### VSCodium
|
||||
|
||||
![Code OSS screenshot][7]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
The easiest alternative to VS Code is VS Code itself, built without Microsoft's proprietary additions. The [VSCodium][9] project provides downloadable executables of Code - OSS, built from the VS Code codebase without Microsoft's `product.json` changes. The VSCodium developers also go to great length to deactivate all hard-to-find telemetry options, delivering the cleanest build of VS Code's source you can find without building it yourself.
|
||||
|
||||
VSCodium cautions that VS Code quietly includes some proprietary tools that cannot be shipped with an open source build. This includes a C# debugger and some gallery extensions. If you need them, there are [documented workarounds][10] for these issues, but if you rely on something very specific in VS Code, you should verify that it functions in VSCodium.
|
||||
|
||||
You should also verify that all [telemetry is deactivated][11].
|
||||
|
||||
### Code - OSS
|
||||
|
||||
If you don't want to use VSCodium's build, you can [compile VS Code from source][12] yourself and end up with the same thing. The executable is called `Code - OSS` rather than `VSCode`, and the license restrictions that apply to VSCodium also apply to your build, but so do the workarounds.
|
||||
|
||||
If you build the application from source, you should verify that all [telemetry is deactivated][11] when you first launch it.
|
||||
|
||||
### Atom
|
||||
|
||||
![Atom screenshot][13]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Atom][14] is an open source IDE-like text editor that Microsoft acquired when it purchased GitHub. Like VS Code, you can extend the Atom editor with plugins and customize it with themes and your unique combination of tools. It is also cross-platform and has built-in GitHub integration. In short, Atom is potentially whatever you need it to be, so long as the extensions you need already exist or you're willing to write them.
|
||||
|
||||
Also like VS Code, Atom includes [metrics tracking by default][15]. This can be disabled, and unlike VS Code, there are no arbitrary restrictions on extensions, so you don't have to change up your workflow in exchange for your privacy. Atom is certainly a useful tool for coders, but it's also a pretty great editor for [anyone who uses a computer][16]. If you're looking for a good general-purpose text editor, give Atom a try.
|
||||
|
||||
### GNOME Builder
|
||||
|
||||
![GNOME Builder screenshot][17]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
Developed as an IDE for the GNOME desktop, [GNOME Builder][18] is a code editor for Linux, specifically for building GNOME applications. If you're building applications for Linux and want an easy avenue to compatibility, Builder is the easy choice. Install Builder from [Flathub.org][19]; when you start a project, it'll even prompt you to install the GNOME SDK if you're missing it. This means you don't have to consciously track GNOME as you maintain your application because Builder does it for you.
|
||||
|
||||
However, you can use Builder for much more than just GNOME applications. It supports dozens of programming languages, including Python, Rust, C and C++, Java, Go, JavaScript, TypeScript, VB.NET, several markup and Markdown languages, and more. Some of these have full support with autocompletion and pop-up function definitions, while others only have simple conveniences such as syntax highlighting and auto-bracket matching. The IDE is a pleasure to work with, though, whether you consider yourself a serious programmer or you're just in need of a good HTML and CSS editor.
|
||||
|
||||
### Geany
|
||||
|
||||
![Geany screenshot][20]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Geany][21] is a powerful, stable, and lightweight editor with useful features to help you write good Bash, Python, Lua, XML, HTML, LaTeX, and more. There's plenty of support for 50 different programming and scripting languages, markup languages, and miscellaneous filetypes (such as .diff and .po). At the very least, Geany almost certainly provides bracket matching and syntax highlighting—and it usually offers quite a lot more.
|
||||
|
||||
Geany is a modest little editor, but through plugins, you can add features such as a panel for a project view, filesystem tree, debugging, a terminal, and so on until it looks and acts like an IDE. Or, if you prefer, you can keep it simple and understated. If you can't run VS Code on a computer due to limitations in CPU or RAM, Geany is the obvious alternative. It's quick to launch, and its memory footprint is negligible. While Geany is a little heftier than running Vim in a terminal, it's fast and snappy even on a Raspberry Pi.
|
||||
|
||||
### Brackets
|
||||
|
||||
![Brackets screenshot][22]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Brackets][23] is a text editor and IDE aimed at web developers. It has strong support for HTML, CSS, JavaScript, PHP, and even Python. However, like VS Code, it has a rich ecosystem of extensions, so you can expand it to serve as your workbench for whatever language you work in the most.
|
||||
|
||||
There are extensions to help parse languages, to run scripts, and even to compile and execute code. Brackets has a traditional interface anyone can understand, whether or not you're familiar with an IDE or even a text editor beyond a simple notepad. If you spend a little time adding relevant extensions and getting to know them, you'll find Brackets a useful and subtle editor that helps you, through autocompletion and linting, avoid silly mistakes in whatever you're typing. And if you're writing code, it'll probably make your testing and debugging workflow faster.
|
||||
|
||||
### Che
|
||||
|
||||
![Che screenshot][24]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
If you enjoy living on the cutting edge, [Che][25] is an editor you need to try. It's a cloud-based IDE, so it runs by default as a Software as a Service (SaaS), but it's entirely open source, so it can be run as _your own_ SaaS, provided you have a Kubernetes instance.
|
||||
|
||||
More than just being an online IDE, though, Che is an IDE built for cloud development. It makes no assumptions that you expect or want a view of your local filesystem. It lives and works in the cloud, so you can too. In fact, if you have a Git server, you can treat it as your filesystem and work on a project directly from its repository. Of course, you can also download any work you do, if you like to have a local backup copy.
|
||||
|
||||
But its main feature, and the one cloud developers are excited about, is that Che is a full-featured, Kubernetes-aware, open source IDE. If you're building apps, sites, or containers (or a combination of the three) for the cloud, then Che is an editor you need to try.
|
||||
|
||||
### What's your choice?
|
||||
|
||||
Are you using one of these alternatives to VS Code? Is there one you would like to try? Please share your feedback in the comments.
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://opensource.com/article/20/6/open-source-alternatives-vs-code
|
||||
|
||||
作者:[Seth Kenlon][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/译者ID)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://opensource.com/users/seth
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/laptop_screen_desk_work_chat_text.png?itok=UXqIDRDD (Person using a laptop)
|
||||
[2]: https://github.com/microsoft/vscode
|
||||
[3]: https://code.visualstudio.com/
|
||||
[4]: https://code.visualstudio.com/license
|
||||
[5]: https://github.com/Microsoft/vscode/issues/60#issuecomment-161792005
|
||||
[6]: https://www.chromium.org/
|
||||
[7]: https://opensource.com/sites/default/files/uploads/code-oss.png (Code OSS screenshot)
|
||||
[8]: https://creativecommons.org/licenses/by-sa/4.0/
|
||||
[9]: https://vscodium.com/
|
||||
[10]: https://github.com/VSCodium/vscodium/blob/master/DOCS.md
|
||||
[11]: https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting
|
||||
[12]: https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run
|
||||
[13]: https://opensource.com/sites/default/files/uploads/atom.jpg (Atom screenshot)
|
||||
[14]: http://atom.io
|
||||
[15]: https://discuss.atom.io/t/how-do-i-disable-the-metrics-or-tracking/24520
|
||||
[16]: https://opensource.com/article/19/4/write-git
|
||||
[17]: https://opensource.com/sites/default/files/uploads/builder.png (GNOME Builder screenshot)
|
||||
[18]: https://wiki.gnome.org/Apps/Builder
|
||||
[19]: https://flathub.org/apps/details/org.gnome.Builder
|
||||
[20]: https://opensource.com/sites/default/files/uploads/geany.png (Geany screenshot)
|
||||
[21]: https://www.geany.org/
|
||||
[22]: https://opensource.com/sites/default/files/uploads/brackets.jpg (Brackets screenshot)
|
||||
[23]: http://brackets.io/
|
||||
[24]: https://opensource.com/sites/default/files/uploads/che-cpp.jpg (Che screenshot)
|
||||
[25]: https://www.eclipse.org/che/extend/
|
@ -0,0 +1,138 @@
|
||||
[#]: collector: (lujun9972)
|
||||
[#]: translator: (nophDog)
|
||||
[#]: reviewer: ( )
|
||||
[#]: publisher: ( )
|
||||
[#]: url: ( )
|
||||
[#]: subject: (7 open source alternatives to VS Code)
|
||||
[#]: via: (https://opensource.com/article/20/6/open-source-alternatives-vs-code)
|
||||
[#]: author: (Seth Kenlon https://opensource.com/users/seth)
|
||||
|
||||
VS Code 的 7 个开源替代品
|
||||
======
|
||||
为了避免使用微软版本的 VS Code,我们需要另行选择一个开源的代码编辑器。
|
||||
![Person using a laptop][1]
|
||||
|
||||
Visual Studio Code,也叫 VS Code,是一个跨平台代码编辑器,通用于 Linux、Windows 以及 macOS。它既能编辑简单文本,也能像集成开发环境(IDE)一样管理整个代码库。基于插件,VS Code 有很强的扩展性,并且在市场上的地位足以证明,它的确是一个可靠的文本编辑器。
|
||||
|
||||
微软以开源的方式发布了 VS Code,但是你从微软那儿下载的版本其实并不开源。无论如何,你仍有办法以开源的方式使用 VS Code,或者直接选择其它的开源替代品。
|
||||
|
||||
### 以开源的方式构建 VS Code
|
||||
|
||||
你可以在 [GitHub](2) 获得 VS Code 的源代码。当你 [从微软][3] 那里下载 VS Code 后,你会发现它基于 [Microsoft Software License][4] 许可。这并不是一份开源许可。区别在于构建过程。
|
||||
|
||||
Chris Dias 是微软 VS Code 项目开发者之一,他在 VS Code 与 Chrome 浏览器和其开源的“上游”项目 [Chromium][6] 之间 [作了一个对比][5]。VS Code 确确实实是基于开源代码库构建的。微软官方发布的版本带有一些与微软相关的功能,包括一项商标、一个插件库,一个 C# 调试器以及遥测。但如果你克隆然后自行编译,这些东西都不会被加入,所以你得到了一个名为 Code 的“干净”版本 —— OSS(OSS 代表开源软件)。
|
||||
|
||||
实际上,VS Code 与 Code —— OSS 之间的差异很小。最值得注意的是,VS Code 包含遥测功能,它会记录软件数据。微软不可能监控你的一举一动,而且目前越来越多软件都在收集使用数据。在不在乎 VS Code 的遥测功能,完全取决于你自己。如果你不希望它追踪你的使用情况,这里有一些很棒的 VS Code (开源)替代品。
|
||||
|
||||
### VSCodium
|
||||
|
||||
![Code OSS screenshot][7]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
取代 VS Code 最简单的办法就是构建不带微软附属功能的版本。[VSCodium][9] 项目提供下载 Code 的二进制可执行文件 —— OSS,基于 VS Code 代码库编译,没有配置微软的 `product.json` 。VSCodium 的开发者还竭尽全力禁用了所有难以寻找的遥测选项,除非你自行编译,否则这已经是你能找到的最干净的 VS Code 版本。
|
||||
|
||||
VSCodium 提醒说,开源版本无法提供某些 VS Code 默认带有的专利工具。包括一个 C# 调试器和部分插件。如果你需要它们,可以在 [文档中] 找到解决办法,但是假如你依赖 VS Code 中某些特定的功能,请确保你同样能够在 VSCodium 中使用它们。
|
||||
|
||||
此外,你还得验证是否已禁用所有遥测功能。
|
||||
|
||||
### Code - OSS
|
||||
|
||||
如果不想用 VSCodium 的版本,你可以自己 [从头编译 VS Code][12],得到一样的版本。可执行文件叫做 `Code - OSS`,而不是 `VSCode`,
|
||||
|
||||
如果通过编译源码构建应用,你要确保第一次启动时 [所有遥测都已经被禁用]。
|
||||
|
||||
### Atom
|
||||
|
||||
![Atom screenshot][13]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Atom][14] 是一个类似于 IDE 的文本编辑器,当微软收购 Github 的同时也收购了它。和 VS Code 一样,你可以使用插件,扩展 Atom 编辑器,此外,你还能通过自己的工具和主题实现定制。它开源且与 Github 集成。简而言之,只要你能找到你想用的插件,或者你愿意自己动手写,那么 Atom 几乎可以满足你的一切需求。
|
||||
|
||||
跟 VS Code 一样,Atom 也 [默认包含遥测][15]。你可以禁用这个功能,而且跟 VS Code 不同的是,使用插件不受任何限制,所以不必再因为隐私改变你的工作流。对写代码的人来说,毫无疑问 Atom 是很有用的工具,而对于 [使用电脑的人][16],它同样会是一个很赞的编辑器。如果你需要一个顺手的通用编辑器,请试试 Atom。
|
||||
|
||||
### GNOME Builder
|
||||
|
||||
![GNOME Builder screenshot][17]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
为 GNOME 桌面开发的 IDE,[GNOME Builder][18] 是 Linux 平台的代码编辑器,专门用于构建 GNOME 应用。如果你为 Linux 构建应用程序,希望轻松解决兼容性问题,那么 Builder 就是最简单的选择。从 [Flathub.org][19] 安装 Builder;当你开启一个新项目,如果没有安装 GNOME SDK,它会提醒你。这意味着当维护你的应用时,你不必刻意关注 GNOME 的状态,因为 Builder 在替你做这件事。
|
||||
|
||||
然而,Builder 不仅能构建 GNOME 程序。它还支持各种各样的编程语言,包括 Python,Rust,C 和 C++,Java,Go,JavaScript,TypeScript,VB.NET,Markdown 和几种标记语言,甚至更多。它对部分语言有全面的支持,包括自动补全以及弹出式函数定义,但是其它语言仅仅含有一些比较方便的功能,例如语法高亮跟自动匹配括号。不管你是不是一个正经的程序员,或者你只想要一个给力的 HTML 和 CSS 编辑器,这个 IDE 都能让你舒心使用。
|
||||
|
||||
### Geany
|
||||
|
||||
![Geany screenshot][20]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Geany][21] 是一个强大、稳定却轻量的编辑器,它有很多有用的特性,能帮你写 Bash,Python,Lua,XML,HTML,LaTex,当然远不止这些。对 50 种不同的编程、脚本、标记语言和各种文件类型(比如 .diff 和 .po),Geany 都有很好的支持。退一万步讲,Geany 还有括号匹配和语法高亮 —— 通常来说,它包含更多功能。
|
||||
|
||||
Geany 是一个小型编辑器,但是通过插件,你可以为它添加特性,例如项目展示盘,文件系统树,调试,终端,等等,直到它看起来像一个 IDE。当然,萝卜白菜各有所爱,你也可以尽量使它保持简洁易用。如果因为电脑 CPU 或者内存的限制而无法使用 VS Code,那么很明显 Geany 可以作为你的选择。它只占用少量内存,而且启动迅速。即便跟运行在终端里的 Vim 相比,Geany 稍显笨重,但就算在树莓派,它也能做到快速、灵活。
|
||||
|
||||
### Brackets
|
||||
|
||||
![Brackets screenshot][22]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
[Brackets][23] 是面向网页开发者的文本编辑器和 IDE。对于 HTML,CSS,JavaScript,PHP 甚至 Python,它都有很强大的支持。而且跟 VS Code 一样,它也有一个很丰富的插件生态,所以你可以最大限度地扩展它,以适应你所有编程语言的工作。
|
||||
|
||||
有的插件用于辅助解析语言,运行脚本,甚至编译执行代码。Brackets 有一个通俗的传统界面,不管你是否熟悉 IDE 或者像记事本一样简单的文本编辑器,都能驾轻就熟。如果稍微花点时间,添加几个相关插件,然后熟悉它们,你会发现 Brackets 真的是一个很精妙、很有用的编辑器,不管你输入什么,它都能通过自动补全、提示帮你避免低级错误。假如你是程序员,它能帮你加快测验和调试周期。
|
||||
|
||||
### Che
|
||||
|
||||
![Che screenshot][24]
|
||||
|
||||
(Seth Kenlon, [CC BY-SA 4.0][8])
|
||||
|
||||
如果你喜欢新技术,那你应当尝试 [Che][25] 编辑器。这是一个基于云的 IDE,所以它默认作为 Software as a Service(SaaS)运行,但它是完全开源的,如果你有 Kubernetes 实例,那就可以运行为_你自己的_ SaaS。
|
||||
|
||||
Che 不仅是一个线上 IDE,而且是一个为云开发而构建的 IDE。在 Che 的概念里,用户无需查看本地文件系统。由于它在云端工作,所以你也可以这么做。事实上,如果你有一台 Git 服务器,那就可以直接在它的仓库中把它当作你的文件系统,并完成你的项目。当然,你有权下载所有文件做本地备份。
|
||||
|
||||
但 Che 的主要特点,也是云开发者最为兴奋的一点,它是一个功能全面、带有 Kubernetes 感知功能的开源 IDE。
|
||||
|
||||
### 那么你的选择是?
|
||||
|
||||
你有没有在使用这些 VS Code 替代品中的某一个呢?想不想挑一个试试呢?欢迎在评论中分享你的见解。
|
||||
|
||||
--------------------------------------------------------------------------------
|
||||
|
||||
via: https://opensource.com/article/20/6/open-source-alternatives-vs-code
|
||||
|
||||
作者:[Seth Kenlon][a]
|
||||
选题:[lujun9972][b]
|
||||
译者:[译者ID](https://github.com/nophDog)
|
||||
校对:[校对者ID](https://github.com/校对者ID)
|
||||
|
||||
本文由 [LCTT](https://github.com/LCTT/TranslateProject) 原创编译,[Linux中国](https://linux.cn/) 荣誉推出
|
||||
|
||||
[a]: https://opensource.com/users/seth
|
||||
[b]: https://github.com/lujun9972
|
||||
[1]: https://opensource.com/sites/default/files/styles/image-full-size/public/lead-images/laptop_screen_desk_work_chat_text.png?itok=UXqIDRDD (Person using a laptop)
|
||||
[2]: https://github.com/microsoft/vscode
|
||||
[3]: https://code.visualstudio.com/
|
||||
[4]: https://code.visualstudio.com/license
|
||||
[5]: https://github.com/Microsoft/vscode/issues/60#issuecomment-161792005
|
||||
[6]: https://www.chromium.org/
|
||||
[7]: https://opensource.com/sites/default/files/uploads/code-oss.png (Code OSS screenshot)
|
||||
[8]: https://creativecommons.org/licenses/by-sa/4.0/
|
||||
[9]: https://vscodium.com/
|
||||
[10]: https://github.com/VSCodium/vscodium/blob/master/DOCS.md
|
||||
[11]: https://code.visualstudio.com/docs/supporting/faq#_how-to-disable-telemetry-reporting
|
||||
[12]: https://github.com/Microsoft/vscode/wiki/How-to-Contribute#build-and-run
|
||||
[13]: https://opensource.com/sites/default/files/uploads/atom.jpg (Atom screenshot)
|
||||
[14]: http://atom.io
|
||||
[15]: https://discuss.atom.io/t/how-do-i-disable-the-metrics-or-tracking/24520
|
||||
[16]: https://opensource.com/article/19/4/write-git
|
||||
[17]: https://opensource.com/sites/default/files/uploads/builder.png (GNOME Builder screenshot)
|
||||
[18]: https://wiki.gnome.org/Apps/Builder
|
||||
[19]: https://flathub.org/apps/details/org.gnome.Builder
|
||||
[20]: https://opensource.com/sites/default/files/uploads/geany.png (Geany screenshot)
|
||||
[21]: https://www.geany.org/
|
||||
[22]: https://opensource.com/sites/default/files/uploads/brackets.jpg (Brackets screenshot)
|
||||
[23]: http://brackets.io/
|
||||
[24]: https://opensource.com/sites/default/files/uploads/che-cpp.jpg (Che screenshot)
|
||||
[25]: https://www.eclipse.org/che/extend/
|
Loading…
Reference in New Issue
Block a user