SUKIYAKI

今、役立つ情報をシンプルに発信

VS code のターミナルの日本語表示

VS codeでKotlinを練習し始めたのですが、ターミナルの日本語表示がどうもうまくいかないのでいろいろ試した結果、Settings.jsonの設定を以下のようにするとうまくいくことがわかりました。

ポイントはchcpの下行の932です。よく95001に設定するという書き込みが見られますが、932で試すとうまくいきました。お試しあれ。

{
    "editor.renderControlCharacters"true,
    "files.autoSave""afterDelay",
    "terminal.integrated.shellArgs.windows": [
        "-NoExit",
        "-Command",
        "chcp",
        "932"
        ],
        "files.autoGuessEncoding"true,
        "editor.fontLigatures"null,
        "code-runner.runInTerminal"true,
        "notebook.kernelProviderAssociations": [
        
        ],
}