I
I
Innokenty Ivanov2017-05-03 10:59:22
PowerShell
Innokenty Ivanov, 2017-05-03 10:59:22

Powershell terminal in VS Code - how to fix bugs?

I'm using VS Code on Windows 10, and I'm building applications on NodeJS. As a terminal, I have Powershell installed:
d3a140a3961d49f8921dd2a95ff52b6c.png
Unfortunately, starting from the 6th version, NodeJS, when the server is closed (Ctrl + C), produces the following bugs:
496e35025f35434a8e70c603277c83ab.png
It is easily repaired and googled: link and command in PS

[Console]::OutputEncoding = [System.Text.Encoding]::GetEncoding("utf-8")

The trouble is that you need to drive this command every time you start the editor , and this is not a thrill. How to automate this business? Or maybe solve it the other way?
Powershell options:39d6797c61ea43739c68efbe192ef459.png9aceb09cf19f4a45bd4b47e4032b71d4.png

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
Puchao, 2017-05-05
@Puchao

https://github.com/Microsoft/vscode/issues/19837
1.
"REG ADD HKCU\Console /v CodePage /t REG_DWORD /d 65001 /f"
2.
"terminal.integrated.shellArgs.windows": ["- NoExit", "/c", "chcp.com 65001"],

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question