5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Chromebook の VSCode (version 1.107) で日本語入力できるようにするとりあえずの方法

Last updated at Posted at 2025-12-23

 VSCdode が、version 1.107 になってから、それまでできていた ChromeOS 本体の日本語入力(cros)が、仕様変更なのかバグなのかできなくなりました。
 とりあえずの解決策としては、起動オプションに --ozone-platform=x11 をつけて、Wayland ではなく X11 で起動します。

  • コンソールから起動する場合
code --ozone-platform=x11
  • コンソールから起動するが、毎回起動オプションを付けるのが面倒な場合

 次のコマンドでエイリアスを設定する。

echo 'alias code="/usr/share/code/code --ozone-platform=x11"' >> ~/.bashrc

 設定を反映させる

source ~/.bashrc
  • ランチャーのアイコンから起動する場合

 次のコマンドで、自分の環境用のdesktopファイルを作る。

mkdir -p ~/.local/share/applications
cp /usr/share/applications/code.desktop ~/.local/share/applications/

 次のコマンドで、code.desktop を開く。

vim ~/.local/share/applications/code.desktop

 vim に慣れていなければ、vim の代わりに codeでもよい。

 code.desktop を次のように変更する。

code.desktop
[Desktop Entry]
Name=Visual Studio Code
Comment=Code Editing. Redefined.
GenericName=Text Editor
- Exec=/usr/share/code/code  %F
+ Exec=/usr/share/code/code --ozone-platform=x11 %F
Icon=vscode
Type=Application
StartupNotify=false
StartupWMClass=Code
Categories=TextEditor;Development;IDE;
MimeType=application/x-code-workspace;
Actions=new-empty-window;
Keywords=vscode;

[Desktop Action new-empty-window]
Name=New Empty Window
Name[cs]=Nové prázdné okno
Name[de]=Neues leeres Fenster
Name[es]=Nueva ventana vacía
Name[fr]=Nouvelle fenêtre vide
Name[it]=Nuova finestra vuota
Name[ja]=新しい空のウィンドウ
Name[ko]=새 빈 창
Name[ru]=Новое пустое окно
Name[zh_CN]=新建空窗口
Name[zh_TW]=開新空視窗
- Exec=/usr/share/code/code --new-window %F
+ Exec=/usr/share/code/code --ozone-platform=x11 --new-window %F
Icon=vscode
5
0
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
5
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?