大约三年前,微软发布了适用于(Microsoft)Windows、Linux和 macOS的新源代码编辑器。这被命名为Visual Studio Code。它比传说中的Visual Studio 2017的各种版本更轻量级的IDE。它可以帮助您调试代码;它具有对Git、语法突出显示(Syntax Highlighting)、IntelliSense的嵌入式控制,可帮助您更快地编写正确的代码、片段和代码重构。
视觉工作室代码
Visual Studio Code是来自Microsoft的轻量级(Microsoft)IDE ,供开发人员使用(IDE)Python、PHP等多种语言编写代码。它还内置了对Git的支持。本文是关于 Visual Studio Code(Studio Code)的分步指南,简要介绍了它的不同渠道以及如何正确安装和使用它。
值得一提的是,Visual Studio Code是一个开源项目,其存储库位于Github上。其次,它有两个版本的产品可供公开下载。第一个是稳定版本(Stable release),平均每 15-30 天更新一次。另一个是Insiders 版本(Insiders release),几乎每天都会更新。
两者的主要区别在于频道的名称。稳定版本非常适合那些非常注重不受到任何干扰的人,即使是偶尔。另一个是 Insiders 频道,实际上是测试版。它包含所有最新修复,同时实现了新的和许多不完整的功能,因此偶尔会导致错误。
总而言之,如果您是一个想要比其他人更早尝试新修复和功能的爱好者,您可以从相应的频道下载 Insiders 版本。
Visual Studio Code背后的开发团队在下载页面上提到了这一点:
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
下载 Visual Studio 代码
下载这两个版本的 Visual Studio Code非常简单。您只需要前往这个专门用于下载 Visual Studio Code的(Studio Code)网页(head to this webpage),然后选择符合您的需要和要求的包。
正如我们在上面的截图中看到的,它支持Windows 7、Windows 8、Windows 8.1 和Windows 10 for Windows平台。我们可以为 Debian 和 Ubuntu下载.deb文件,为( .deb)Red Hat、Fedora和SUSE下载(SUSE).rpm文件。我们还可以获得适用于刚才提到的操作系统的 x32 版本或 32 位版本的软件,显然分别适用于Windows和Linux的(Linux).zip和.tar.gz存档。说到Mac OS,你可以得到一个适合你的包Mac计算机,但您需要确保您运行的是 10.9 版或更高版本的Mac OS。
您甚至可以从此处的专用页面(dedicated page here.)获取上述适用于Windows 平台(Windows Platform)、macOS 和Linux风格的 Visual (Linux)Studio Code的(Studio Code)Insider构建。
安装 Visual Studio 代码
在您点击最符合您的需求和配置的软件包的下载按钮后,该软件包将开始在您的计算机上下载。现在,有不同的方法可以在不同的操作系统环境中安装此软件。我们将专注于如何在Windows上安装它。我正在使用Windows 10来安装它,但是对于每个受支持的(Windows 10)Windows 操作系统(Windows Operating System)版本,该过程都是完全相同的。
因此,现在下载名为VSCodeSetup-version.exe的文件后,双击该文件进行安装。安装只需大约一分钟,具体取决于您运行的硬件有多强大。
您现在将获得一个UAC或用户帐户控制提示(User Account Control Prompt),您必须点击 是。(Yes.)
然后你会看到一个像这样的窗口-
现在,点击 下一步 (Next )继续。
然后您将看到如下所示的许可协议(License Agreement)页面 -
现在点击 下一步 (Next )继续。
现在该页面将询问您是否要为 Visual Studio Code创建一个(Studio Code)开始菜单(Start Menu)文件夹条目。根据您的喜好,您现在可以选择是否要为VS Code创建开始菜单条目。
点击 下一步 (Next )按钮后,下一页将显示一些其他选项,如下面的屏幕截图所示,您可以选择。完成后,点击 下一步。(Next.)
然后它将向您显示您选择安装VS Code的首选项的摘要,并据此您可以导航任何一种方式并通过点击 安装 (Install )按钮继续安装。
现在,它将显示一个安装进度条。安装完成后,点击 Finish 开始使用 Visual Studio Code。
您可以使用右下角的微笑图标报告您心中的任何反馈。
希望初学者发现这个基本教程很有用。(Hope beginners find this basic tutorial useful.)
Visual Studio Code - How to download and install VSC
About three years ago Microsoft released a new source code editor for Windows, Linux, and macOS. This was named Visual Studio Code. It is way lighter IDE than various editions of the legendary Visual Studio 2017. It can help you debug your code; it has embedded control for Git, Syntax Highlighting, IntelliSense to help you write correct code faster, snippets and code refactoring.
Visual Studio Code
Visual Studio Code is a lightweight IDE from Microsoft for developers to write code in the variety of languages like Python, PHP and more. It has inbuilt support for Git as well. This article is a step by step guide about Visual Studio Code, briefing about its different channels and how to install and use it properly.
It is worth mentioning that Visual Studio Code is an open source project with its repository on Github. Secondly, it has two versions of the product that is available for download publically. The first one is the Stable release that sees an update once every 15-30 days at an average. And the other one is the Insiders release that gets an update almost every day.
The main difference between the two lies in the channel’s name. The stable release is ideal for those who are very particular about not getting any interruptions even occasionally. The other one is the Insiders channel that is the beta release actually. It contains all the latest fixes while new and many times incomplete features are implemented and hence causes bugs occasionally.
Summing up, if you are an enthusiast who wants to try out new fixes and features earlier than others, you can download the Insiders version from the respective channel.
The development team behind Visual Studio Code mentions this on the download page:
Visual Studio Code is a lightweight but powerful source code editor which runs on your desktop and is available for Windows, macOS and Linux. It comes with built-in support for JavaScript, TypeScript and Node.js and has a rich ecosystem of extensions for other languages (such as C++, C#, Java, Python, PHP, Go) and runtimes (such as .NET and Unity).
Downloading Visual Studio Code
Downloading both the versions of Visual Studio Code is pretty simple. You just need to head to this webpage dedicated to downloads of Visual Studio Code and choose the package that matches your needs and requirements.
As we can see in the screenshot above, it supports Windows 7, Windows 8, Windows 8.1 and Windows 10 for Windows platform. We can download a .deb file for Debian and Ubuntu and .rpm file for Red Hat, Fedora and SUSE. We can also get an x32 version or 32-bit version of the software for the operating systems just mentioned and obviously the .zip and .tar.gz archives for Windows and Linux respectively. Talking about Mac OS, you can get a package for your Mac computer, but you will need to make sure if you are running version 10.9 or newer of Mac OS.
You can even get an Insider build of Visual Studio Code for Windows Platform, macOS and Linux flavors mentioned above from their dedicated page here.
Installing Visual Studio Code
After you hit the download button for the package that matches your needs and configuration the most, the package will start downloading on your machine. Now, there are different ways to install this software on different operating system environments. We will concentrate on how to install it on Windows. I am using Windows 10 to install it, but the procedure is purely same for every supported version of Windows Operating System.
So, now after you downloaded a file named as VSCodeSetup-version.exe, double-click on the file to install it. It will just take about a minute to install depending on how powerful hardware you are running.
You will now get a UAC or User Account Control Prompt to which you will have to hit Yes.
Then you will see a window like this-
Now, hit Next to proceed further.
Then you will see the License Agreement page which will look like this-
Now hit Next to proceed further.
Now the page will ask you if you want to create a Start Menu folder entry for Visual Studio Code. According to your preferences, you can now select if you want to or not create a start menu entry for VS Code.
After hitting the Next button, the next page will show you some additional options as shown in the screenshot below that you can choose. After you are done, hit Next.
Then it will show you a summary of what preference you have selected to install VS Code, and according to that you can navigate either way and proceed with the installation by hitting the Install button.
Now, it will show an installation progress bar. After the installation is done, hit Finish to launch start using Visual Studio Code.
You can use the smile icon on the right bottom corner to report any feedback you have in your mind.
Hope beginners find this basic tutorial useful.