# 「Visual Studio Code」自体のビルド方法 Windows10 2021-03-08 Windows Server 2019 上で、VSCodeのビルド&実行を行った。 ## 1.ビルド環境構築 https://github.com/Microsoft/vscode 基本的には、以下のドキュメントに従うだけ。 > Contributing to Visual Studio Code > https://github.com/microsoft/vscode/wiki/How-to-Contribute pythonのインストールをVisual Studioから行うか、Anacondaで行うかで迷うが、Visual Studioのものでビルド可能。 git for windowsもVisual Studioから導入したものを利用。 ```= C:\Users\username>python --version Python 3.9.2 C:\Users\username>node --version v14.16.0 ```  https://github.com/felixrieseberg/windows-build-tools ``` npm install --global windows-build-tools ``` WSL2環境も構築したが、ここでのビルドは試していない。 https://github.com/microsoft/vscode/wiki/Selfhosting-on-Windows-WSL ## 2.ビルドおよび実行 スタートメニューより、「x64 Native Tools Command Prompt for VS 2019 Preview」を実行し、以下のコマンドを実行する。 ```= cd vscode yarn .\scripts\code.bat .\scripts\code-cli.bat ``` :::info ※ポイントは、git cloneした直後の状態で、「.git」フォルダが残っている状態で実行しないと途中でエラーとなる。 ::: ```= git clone https://github.com/microsoft/vscode.git ``` ###### tags: `Visual Studio Code` `VSCode` `GitHub` `Electron` `Windows 10`
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up