18
17

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.

VisualStudioでファイルを素早くUTF-8で保存し直す方法

Posted at

VisualStudioは何もしないとShift-JISで保存してしまう困ったちゃんなので、TypeScriptとかを書いている時にうっかり日本語が混ざろうものならコンパイルエラーは避けられません。

で、ファイルメニューからせこせこエンコーディングを変更してもいいんですが、こうすればサクッとできます。

scr.png

Shift-JIS規定外のUnicode文字を入力して、

rapture_20140219234722.png

保存。

「はい」を選択すると、UTF-8(BOM付)で保存されます。もしBOM付が嫌なら「その他エンコードで保存」を押せば任意のエンコードを選択できます。

18
17
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
18
17

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?