1
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?

VisualStudioの新規ファイルをUTF-8で保存する

Last updated at Posted at 2025-04-04

もう備忘録を作る時代ではないかもしれませんが一応、、

VisualStudioでファイルをセーブするときに、自動的にBOMありUTF8でセーブするにはどうしたらよいですか?

Visual Studioでファイルを自動的にBOMありUTF-8で保存するには、以下の手順を実行してください。
1.	Visual Studioを開きます。
2.	メニューから ツール > オプション を選択します。
3.	環境 > ドキュメント を選択します。
4.	「保存時にドキュメントを自動的にエンコードする」オプションを有効にします。
5.	テキスト エディター > 全般 を選択します。
6.	「ファイルのエンコードを自動的に検出する」オプションを有効にします。
これで、Visual StudioはファイルをBOMありのUTF-8エンコードで保存するようになります。

ありがとうGitHub Copilot!!

1
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
1
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?