LoginSignup
6
6

More than 5 years have passed since last update.

Visual Studio Code の画面のちらつきを解消する

Last updated at Posted at 2017-12-30

Ubuntu にインストールした VS Code で、ステータスバーなどがちらつく現象が起こったので、その解決方法を調べました。

調べると、VS Code のイシューに関連する投稿がありました。
https://github.com/Microsoft/vscode/issues/30703

オプション --disable-gpu というオプションが回避策となるようです。実際、筆者の環境ではこの方法で解決しました。

$ code --disable-gpu

ファイルやフォルダを指定して開く場合は、--disable-gpu オプションはそれより後に指定する必要があるようです。(そうでないとうまく動きませんでした。)

$ code foo --disable-gpu

Ubuntu のランチャに登録されている VS Code にも同様のオプションを指定するには、/usr/share/applications/code.desktop をエディタで開き、Exec プロパティを適当に編集します。

$ vi /usr/share/applications/code.desktop
6
6
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
6
6