1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

文字化け怖くないVSCode

Posted at

VisualStudioCodeの文字コード設定

文字化けしたとき

開いているファイルをデコードする文字コードは手軽に変更できます。
encode01.gif

  1. 右下のエンコードボタンを押す
  2. 「エンコード付きで再度開く」
  3. 正しいエンコードを選択
    簡単です。標準状態ではUTF-8で読み書きするようになっています。

エンコードを固定したいとき

shift-jisしか使わない みたいな方はエディタの標準エンコードをへんこうします。
set_encode.gif

  1. Ctrl+, (カンマ)で設定画面を開く
  2. 設定検索窓に"encode"と入力しエンコード設定を出す
  3. 望みのエンコードをセット
  4. 設定を閉じる
    簡単です。これでファイルを開くときは指定文字コードでデコードします。
1
2
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
1
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?