vscode

vscode个人使用过程-仅供个人参考。

vscode代码提示-修改首行为abc的提示解决方法

问题描述:

比如console.log这个常用的打印代码

可是当使用后会发现一个问题,有一个abc的代码提示永远在第一行

解决方法:

vscode设置-->搜索栏输入editor.snippetSuggestions-->选择top

自定义代码片段流程

javascript 复制代码
{
	// Place your 全局 snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and 
	// description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope 
	// is left empty or omitted, the snippet gets applied to all languages. 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:
	"晁阳测试": {
		"scope": "javascript,typescript",
		"prefix": "vv",
		"body": [
			"console.log('$1');",
			"$2"
		],
		"description": "Log output to console"
	}
}
Dart 复制代码
//放置您的全局 此处的片段。每个代码段都定义在一个代码段名称下,并具有范围、前缀、正文和描述在范围字段中添加代码段适用的语言的逗号分隔ID。
	//如果范围为空或被省略,则该片段将应用于所有语言。
    //前缀是什么用于触发摘录,并且正文将被展开和插入。可能的变量包括:
    //$1,$2用于制表位,$0用于最后的光标位置,${1:label},${2:other}用于占位符。
    //具有相同id的占位符是连接的。
相关推荐
凡人的AI工具箱8 分钟前
PyTorch深度学习框架60天进阶学习计划-第57天:因果推理模型(二)- 高级算法与深度学习融合
人工智能·pytorch·深度学习·学习·mcp·a2a
Gsen281933 分钟前
AI大模型从0到1记录学习 大模型技术之机器学习 day27-day60
人工智能·学习·机器学习
行云流水62634 分钟前
js实现输入高亮@和#后面的内容
前端·javascript·css
Linux运维技术栈42 分钟前
Vim 命令大全:从入门到精通
linux·编辑器·vim
涛哥码咖1 小时前
前端十种排序算法解析
前端·算法·排序算法
村头的猫1 小时前
建站SEO优化之站点地图sitemap
前端·经验分享·笔记
晨曦backend1 小时前
Vim 撤销 / 重做 / 操作历史命令汇总
linux·编辑器·vim
Sui_Network1 小时前
WAYE.ai 为Sui 上 AI 的下一个时代赋能
大数据·前端·人工智能·物联网·游戏
奋斗者1号1 小时前
Cursor 编辑器中的 Notepad 功能使用指南
编辑器·notepad++
晨曦backend1 小时前
Vim 插件管理:MiniBufExplorer 使用指南
linux·编辑器·vim