0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Ubuntu 26.04 に VS Code をインストールする手順まとめ(APT 版)

0
Last updated at Posted at 2026-05-02

Ubuntu 26.04(Resolute)に Visual Studio Code をインストールする方法

Ubuntu 26.04(Resolute)環境に
Visual Studio Code(VS Code)をインストールする手順をまとめます。

APT リポジトリを利用する方法のため、
今後の VS Code の更新も apt upgrade で自動反映されます。

環境

  • Ubuntu 26.04(Resolute)
  • Desktop Edition

インストール手順

1. パッケージ情報を更新

sudo apt update

2. 必要ツールをインストール

GPG キー変換や HTTPS リポジトリ利用に必要なパッケージを導入します。

sudo apt install -y wget gpg apt-transport-https

3. Microsoft の GPG キーを追加

wget -qO- https://packages.microsoft.com/keys/microsoft.asc \
  | gpg --dearmor > packages.microsoft.gpg

sudo install -o root -g root -m 644 \
  packages.microsoft.gpg \
  /usr/share/keyrings/

4. VS Code の APT リポジトリを追加

sudo sh -c 'echo "deb [arch=amd64,arm64,armhf signed-by=/usr/share/keyrings/packages.microsoft.gpg] \
https://packages.microsoft.com/repos/code stable main" \
> /etc/apt/sources.list.d/vscode.list'

5. VS Code をインストール

sudo apt update
sudo apt install -y code

起動方法

アプリ一覧から Visual Studio Code を起動するか、
ターミナルから以下を実行します。

code

日本語化する方法

VS Code 起動後、拡張機能タブimage.pngから
Japanese Language Pack をインストールします。

検索ワード:

  • Japanese Language Pack for Visual Studio Code

Gemini Code Assist を導入する

Gemini 系のコード補完を利用したい場合は、
拡張機能タブimage.pngから以下を検索します。

  • Gemini Code Assist

補足

Ubuntu 26.04 は執筆時点では正式サポート対象外の場合があります。
そのため、機種によっては挙動が不安になる可能性があります。

ただし APT 版を利用しておくことで、Microsoft 側が正式対応した際に
自動で適切なビルドへ更新されます。

まとめ

APT リポジトリ版 VS Code を利用することで、

  • アップデート管理が簡単
  • 公式ビルドへ自動追従
  • Ubuntu 標準の運用に近い形で管理可能

というメリットがあります。

Ubuntu 26.04 環境でも、まずは APT 版を導入するのがおすすめです。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?