Help us understand the problem. What is going on with this article?

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

More than 1 year has passed since last update.

環境

  • 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
yoshiyasu1111
日々の作業を忘れないために残しておきます。なるべく動作確認したものを記述しますが、ツッコミなどある場合はお知らせください。
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
Comments
No comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  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
ユーザーは見つかりませんでした