5
4

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.

Visual Studio Code で msbuild の出力を UTF-8 で表示する

Last updated at Posted at 2016-10-14

デフォルトだと、utf-8 を正しく表示してくれなくて残念な感じである。
まぁ、そのうち修正されるとは思うが、簡単に纏めてみる。

調べてみると、chcp 65001 を実行したら良いらしいので、
以下のような bat をパスが通っている場所に用意して、

msbuild.bat
@echo off
chcp 65001 > NUL
msbuild.exe %*

tasks.json のコマンド指定部分を上で用意した msbuild.bat が呼ばれるように変更。

tasks.json
	"command": "msbuild.bat",

以上。

キャプチャ.PNG

ちゃんと utf-8 出力ができるようになった。

5
4
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
4

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?