Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to compile and run vscode source code

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article is about how to compile and run vscode source code. The editor thought it was very practical, so I shared it with you as a reference. Let's follow the editor and have a look.

First, prepare the environment

Git

Node.js (64 bit, > = 8.12.0

< 9.0.0) Python(最好还是2.7版本,不支持3.0及其以上版本) 1、设置PYTHON指向您的环境变量python.exe。例如:C:\Python27\python.exe 2、为VSCode依赖的本机模块安装编译器 选项1(推荐):使用Windows Build Tools npm模块 以管理员身份启动Powershell并安装Windows Build Tools npm模块(文档)。 npm install --global windows-build-tools --vs2015 注意:--debug如果在安装过程中遇到任何问题,该标志会很有用。 注意:如果遇到错误找不到v141(Platform Toolset ='v141')的构建工具。"您可能安装了Visual Studio版本。要么卸载该版本,要么确保安装VC ++ 2015.3 v14.00( v140)桌面安装工具集 选项2:使用Visual Studio 2017 安装Visual Studio 2017社区版 选择使用C ++进行桌面开发 选择桌面VC ++ 2015.3 v14.00(V140)工具集在右手边 注意:如果你遇到一个错误的构建工具V141(平台工具集="V141")无法找到"。确保你安装了桌面VC ++ 2015.3 v14.00(V140)的工具集 重启电脑警告:确保您的配置文件路径仅包含ASCII字母,例如John,否则可能导致节点gyp使用问题(nodejs / node-gyp / issues#297) 注意:目前不支持通过Windows子系统Linux(WSL)进行构建和调试。 二、编译运行 请按照如下步骤: 1、下载代码(可以通过git clone的方式也可以通过下载zip包的方式) git clone https://github.com/Microsoft/vscode.git 2、进入vscode目录并执行yarn命令 cd vscodeyarn 3、监听程序 yarn watch cmd输出: 4、再次打开新的cmd,原来监听的cmd不要关闭,并在新的cmd对应的目录下执行.\scripts\code.bat命令 .\scripts\code.bat 接下来控制台输出:

And open a vscode.exe at the same time

Thank you for reading! On how to compile and run the vscode source code to share here, I hope the above content can be of some help to you, so that you can learn more knowledge. If you think the article is good, you can share it and let more people see it.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report