https://www.freesion.com/article/5288179294/
Code Spell Checker
可以帮助我们检查单词拼写是否出现错误,检查的规则遵循 camelCase (驼峰命名法)。
Error Lens
Error Lens 是一款把代码检查(错误、警告、语法问题)进行突出显示的插件。Error Lens 通过使诊断更加突出,增强了语言的诊断功能,突出显示了由该语言生成的诊断所在的整行,并在代码行的位置以行方式在线打印了诊断消息。
C#,C# Extensions
提示C语言代码插件
Auto-Using for C#
自动导入并为尚未导入C#文件的引用提供智能感知。
Code Runner
代码运行的插件,支持C/C++/python/lua/C#等几十种语法
Lua
在VSCode中编写Lua的插件,会进行语法检查
调试断点可以进行条件断点,开始方式,在断点处右键鼠标
下载扩展中下载EmmyLua插件
安装JDK,要求1.8以上,在扩展选项中编辑JDK路径
加上emmylua.java.home
在lua的入口处加上以下代码,路径记得改成自己的路径
package.cpath = package.cpath … ‘;’ … ‘C:/Users/zhang/.vscode/extensions/tangzx.emmylua-0.5.5/debugger/emmy/windows/x64/emmy_core.dll’
local dbg = require(‘emmy_core’)
dbg.tcpConnect(‘localhost’, 9966)
记得端口要一致
在运行调试中添加emmyLua
自动添加
手动添加
{
“type”: “emmylua_new”,
“request”: “launch”,
“name”: “EmmyLua New Debug”,
“host”: “localhost”,
“port”: 9966,
“ext”: [
“.lua”,
“.lua.txt”,
“.lua.bytes”
],
“ideConnectDebugger”: false
}
然后按F5运行lua即可了
在launch.json中添加配置
{
“name”: “Unity Editor”,
“type”: “unity”,
“path”: “xxxx/项目名/Library/EditorInstance.json”
“request”: “launch”
},
{
“name”: “Windows Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “OSX Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “Linux Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “iOS Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “Android Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “Xbox One Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “PS4 Player”,
“type”: “unity”,
“request”: “launch”
},
{
“name”: “SwitchPlayer”,
“type”: “unity”,
“request”: “launch”
}
选择Unity Editor,打好断点,F5运行就可以了