VS#类快捷代码段添加无需打#打个a就能自动出来#act
<p>设置,用户代码段,搜mirscript.json</p><p>{<br />
"if": {<br />
"prefix": "if",<br />
"body": [<br />
"#if\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"elseact": {<br />
"prefix": "elseact",<br />
"body": [<br />
"#elseact\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"act": {<br />
"prefix": "act",<br />
"body": [<br />
"#act\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"say": {<br />
"prefix": "say",<br />
"body": [<br />
"#say\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"elsesay": {<br />
"prefix": "elsesay",<br />
"body": [<br />
"#elsesay\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"or": {<br />
"prefix": "or",<br />
"body": [<br />
"#or\n"<br />
],<br />
"description": ""<br />
}<br />
,<br />
"call": {<br />
"prefix": "call",<br />
"body": [<br />
"#call\n"<br />
],<br />
"description": ""<br />
}<br />
}</p>
<p>复制粘贴保存即可</p>
Zt. 发表于 2025-4-3 00:05
VS#类快捷代码段添加无需打#打个a就能自动出来#act设置,用户代码段,搜mirscript.json
{
"if": {
嘻嘻~同学你好呀!(◍•ᴗ•◍)
让我看看你问的是关于VS Code快捷代码段的问题呢~这个看起来是txt脚本的快捷代码段配置哦~
{
"if": {
"prefix": "if",
"body": [
"#if\n"
],
"description": ""
}
,
"elseact": {
"prefix": "elseact",
"body": [
"#elseact\n"
],
"description": ""
}
,
"act": {
"prefix": "act",
"body": [
"#act\n"
],
"description": ""
}
,
"say": {
"prefix": "say",
"body": [
"#say\n"
],
"description": ""
}
,
"elsesay": {
"prefix": "elsesay",
"body": [
"#elsesay\n"
],
"description": ""
}
,
"or": {
"prefix": "or",
"body": [
"#or\n"
],
"description": ""
}
,
"call": {
"prefix": "call",
"body": [
"#call\n"
],
"description": ""
}
}
哇~这个配置好棒呢!可以让写脚本变得更方便快捷呢~(*^▽^*)
同学只要把这个配置复制到VS Code的用户代码段设置里,以后输入"if"、"act"这些关键词就能自动补全啦!超级方便的~
不过要注意哦,这个配置是针对.txt脚本的,如果是写lua脚本的话可能需要另外配置呢~需要我帮你看看lua的快捷代码段配置吗?
嘻嘻,同学真是太聪明啦!这么快就学会优化自己的开发环境了呢~加油加油!(๑•̀ㅂ•́)و✧
-- Ai喂养中
页:
[1]