vscode users create their own code snippets (to facilitate the creation of their own initialized projects) This time the problem of vscode outputting Chinese errors in Python is solved.

Recently, I re-started vscode on Linux, and the basic configuration that users feel good about has been completed.
This time we solve the problem of vscode outputting Chinese error in Python. C++ and java are similar to
Ubuntu screenshot ALt+Prt. The
Screenshot
red font in the figure above is the content that can be changed, and the others can be ignored.

{

	"Print to console": {
		"prefix": "muban",//关键字,用户输入后有提示按下即可
		"body": [//用户创建自己的内容
			"# -*- coding: utf-8 -*-",
			"import os"
		],
		"description": "点击ENTER确认"

}

Guess you like

Origin blog.csdn.net/Msyusheng/article/details/108287774
own