0
点赞
收藏
分享

微信扫一扫

improved-diffusion代码逐行理解之sample

王栩的文字 2024-07-24 阅读 3

格式化代码:

Shift+Alt+F

JS中自动输入console.log()的方法:

先在vscode中,找到文件 > 首选项 > 配置用户代码片段,在弹出的下拉框处方输入javascript.json,复制下面的代码,覆盖原来的代码,保存即可。

{
	// Place your snippets for javascript here. Each snippet is defined under a snippet name and has a prefix, body and 
	// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
	// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the 
	// same ids are connected.
	// Example:
	"Print to console String": {
		"prefix": "csl",
		"body": [
			"console.log($1)",
			"$2"
		],
		"description": "Log output to console"
	},
	"Print to console Var": {
		"prefix": "csls",
		"body": [
			"console.log('$1')",
			"$2"
		],
		"description": "Log output to console"
	}
}
举报

相关推荐

0 条评论