一般社団法人 全国個人事業主支援協会

COLUMN コラム

■linux環境でVSを使用した経緯
・windowsとlinuxでパスの形式が違うので、パス周りでエラーになる可能性が高い
・mac使用者が多いので、手順書がlinuxベースで記載されている

■WindowsのPC
linuxでvsを立ち上げる簡易な方法が、WSL。

■実施方法
https://learn.microsoft.com/ja-jp/windows/wsl/install

初めてでも1時間もあれば、環境作成できる
■手順
①wsl インストール

PS C:\> wsl –install -d Ubuntu-20.04
ダウンロード中: Ubuntu 20.04 LTS
インストール中: Ubuntu 20.04 LTS
Ubuntu 20.04 LTS はインストールされました。
Ubuntu 20.04 LTS を起動しています…
PS C:\>

②Ubuntuの初期設定

nstalling, this may take a few minutes…
Please create a default UNIX user account. The username does not need to match your Windows username.
For more information visit: https://aka.ms/wslusers
Enter new UNIX username: ari
New password:
Retype new password:
passwd: password updated successfully
Installation successful!

The list of available updates is more than a week old.
To check for new updates run: sudo apt update

③Windows側でVSCodeにRemote WSL 拡張機能インストール

③Ubuntu側でVS Code起動

ari@DESKTOP-LK1B8U6:~$ code .
Installing VS Code Server for x64 (3b889b090b5ad5793f524b5d1d39fda662b96a2a)
Downloading: 100%
Unpacking: 100%
Unpacked 2822 files and folders to /home/ari/.vscode-server/bin/3b889b090b5ad5793f524b5d1d39fda662b96a2a.

The following two tabs change content below.

有村

フリーランスのシステムエンジニアしてます。

最新記事 by 有村 (全て見る)

この記事をシェアする

  • Twitterでシェア
  • Facebookでシェア
  • LINEでシェア