Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
13
Help us understand the problem. What is going on with this article?

More than 1 year has passed since last update.

@yoshiyasu1111

ubuntu 18.04にvscodeをインストールする

環境

  • ubuntu 18.04
  • vscode 1.33.1

リポジトリを登録する

aptのレポジトリで使用するマイクロソフトのキーをダウンロードしてきます。

~$ curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg

ダウンロードしてきたキーをaptに登録します。

~$ sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/

aptのリポジトリを登録します

~$ sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'

インストール

aptでhttpsアクセスできるようにapt-transport-httpsをインストールします。

~$ sudo apt install apt-transport-https

vscodeをインストールします。

~$ sudo apt update
~$ sudo apt install code

起動はcodeです。

~$ code
13
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
13
Help us understand the problem. What is going on with this article?