changnet / lua-tags Goto Github PK
View Code? Open in Web Editor NEWLua IntelliSense for Visual Studio Code
License: MIT License
Lua IntelliSense for Visual Studio Code
License: MIT License
Here is the list of snippets which I used together with your extension because it doesn't provide autocomplete for simple things like function
, return
or local
. It would be great if you add them to the standard functionality of your extension, because snippets behave very stupidly. They offer to insert themselves where they are not needed at all.
Thank you for your wonderful extension btw! I love it much more than emmylua, because it doesn't try to be smarter than me :D
{
"elif": {
"body": "else if ${1:condition} then\n\t$0",
"description": "elif",
"prefix": "elif",
},
"for": {
"body": "for ${1:index} = ${2:1}, ${3:10} do\n\t${0:print(index)}\nend",
"description": "for index=1,10",
"prefix": "for",
},
"fori": {
"body": "for ${1:index}, ${2:value} in ipairs(${3:table_name}) do\n\t${0:print(index, value)}\nend",
"description": "for index,value in ipairs()",
"prefix": "fori",
},
"forp": {
"body": "for ${1:key}, ${2:value} in pairs(${3:table_name}) do\n\t${0:print(key,value)}\nend",
"description": "for key, value in pairs()",
"prefix": "forp",
},
"function": {
"body": "function ${1:function_name}($2)\n\t$0\nend",
"description": "function",
"prefix": "function",
},
"if": {
"body": "if ${1:condition} then\n\t$0\nend",
"description": "if",
"prefix": "if",
},
"ifel": {
"body": "if ${1:condition} then\n\t$2\nelse\n\t$0\nend",
"description": "ifel",
"prefix": "ifel",
},
"local": {
"body": "local ${1:x} = ${0:1}",
"description": "local x = 1",
"prefix": "local",
},
"return": {
"body": "return $1",
"description": "return ...",
"prefix": "return",
}
}
When I switch lua version in extension settings form 5.3
to luajit
or 5.1
, I get error message at the next VSCode launch:
load stl no module found: coroutine
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.