Visual Studio Code 编辑器基于什么构建 [英] What is the Visual Studio Code editor built on

查看:25
本文介绍了Visual Studio Code 编辑器基于什么构建的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

微软新的(免费)跨平台编辑器是什么底层技术/库VisualStudio Code (2015 年 5 月 29 日发布) 建立在什么之上?有传言说这只是 Github 的 Atom 编辑器更名.

What underlying technologies/libraries is Microsoft's new (free) cross platform editor Visual Studio Code (Launched 5/29/2015) built on? There are rumors that it's just Github's Atom Editor rebranded.

推荐答案

Visual Studio Code 是在 Github 的 电子.

Visual Studio Code is built using web technologies on top of Github's Electron.

Electron 是一个应用运行时,用于编写使用 Chromium原生应用程序(Google Chrome 在其上构建) 用于呈现界面,node.js 用于本地 API (例如:文件系统访问),它主要是作为 Github 的 Atom 代码编辑器的外壳构建的.(注意:Electron 与 NW.js).

Electron is an app runtime for writing native apps that uses Chromium (which Google Chrome is built on) for rendering the interface and node.js for local APIs (example: file system access), it was built primarily as the shell for Github's Atom code editor. (Note: Electron is very similar to NW.js).

Node.js 是一个 (JavaScript) 应用运行时,它构建在 Google 的 V8 JavaScript 引擎上,带有 C 和 C++ 代码,使其能够访问每个操作系统的本机 API(例如:文件系统访问).

Node.js is a (JavaScript) app runtime built on Google's V8 JavaScript engine with C and C++ code to give it access to native APIs for each operating system (example: file system access).

本质上,Microsoft 的新产品完全建立在主要组件由 Google 创建的开源软件之上.

Essentially, Microsoft's new product is built completely upon open source software whose major components were created by Google.

有传言称 Visual Studio 代码是 Github 的 Atom 编辑器的一个分支或品牌重塑.这甚至不是真的.检查 Visual Studio Code 的源代码发现它使用 Electron 和 Atom Shell Archive,但没有其他任何东西来自原子编辑器.

There are rumors that Visual Studio code is either a fork or rebranding of Github's Atom Editor. This is not even remotely true. Inspecting the source of Visual Studio Code reveals that it uses Electron and Atom Shell Archive, but nothing else is from the Atom editor.

编辑器"(使用语法突出显示、行号等呈现代码的东西.) Visual Studio Code 的一部分是 Microsoft 的 Monaco 编辑器.它与用于 OneDrive、Windows Azure、TypeScript Playground 和 Visual Studio Online 的编辑器相同.我还没有从微软找到关于这个编辑器的任何真正的文档,但有一些文章关于它在网络上.

The 'editor' (the thing that renders the code with syntax highlighting, line numbers, etc..) part of Visual Studio Code is Microsoft's Monaco editor. It is the same editor used for OneDrive, Windows Azure, TypeScript Playground, and Visual Studio Online. I have yet to find any real documentation on this editor from Microsoft but there are some articles about it around the web.

Omnisharp 用于为 C# 提供 IntelliSense 和其他代码编辑工具 (例如:重构).

Omnisharp is used to provide IntelliSense and other code editing tools for C# (example: refactoring).

JavaScript Intellisense 似乎都是自定义代码.它提供了令人印象深刻的 JavaScript 补全,但在许多情况下,它似乎不如 Tern (参见 Tern 演示).

The JavaScript Intellisense appears to be all custom code. It provides impressive JavaScript completions but it many cases it appears to be inferior to Tern (see Tern Demo).

这篇关于Visual Studio Code 编辑器基于什么构建的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆