5
VSCode 命令行第一次打开的时候....
source link: https://www.v2ex.com/t/800543
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
VSCode 命令行第一次打开的时候....
会出现很多空格,怎么解决?
第 1 条附言 · 1 天前
就第一个有问题,ctrl+shift+`打开新的就正常了。
指定字体没用。
指定字体没用。
17 条回复 • 2021-09-09 12:45:14 +08:00
RRRoger 1 天前 1
skinny 1 天前 1
我遇到的问题是中文显示正常,但如果 shell 是 pwsh,输出的中文的每一个字都会变成叠词,比如某命令的中文输出是“此命令的语法是”,在 vscode 的终端就会变成“此此命命令令的的语语法法是是”,直接运行 pwsh 不会遇到这个问题。没有找到解决方案。
skinny 1 天前 1
@Tumblr 不是字体问题,尝试设置任何字体都没有用,不是显示不全、有空格或乱码,而是中文显示正常,但是每个中文字符多输出了一次。
如果你有安装 PowerShell Core 7 可以试试,比如你可以在 vscode 的 PowerShell 控制台运行:echo "中文",会输出“中中文文”。不要用 PowerShell 扩展提供的那个集成终端试,那个没问题,而且它是以非交互启动,然后内部再通过代码提供交互功能。
如果你有安装 PowerShell Core 7 可以试试,比如你可以在 vscode 的 PowerShell 控制台运行:echo "中文",会输出“中中文文”。不要用 PowerShell 扩展提供的那个集成终端试,那个没问题,而且它是以非交互启动,然后内部再通过代码提供交互功能。
skinny 1 天前
@Tumblr 我刚刚下载安装了这个字体,设置之后重新开启 vscode 还是这老样子重复输出中文,可能我的哪个软件版本有 bug…… 我升级一下 PowerShell 试试,我的是 7. 1.4
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK