Skip to content

Where does the [description] for @field appear? #2260

Answered by carsakiller
imai-makoto asked this question in Q&A
Discussion options

You must be logged in to vote

Hello, and welcome! 👋🙂

@class creates a “blueprint” for an object. @field adds entries to that blueprint. The combination of the two is very helpful when using tables, as you seem to have found out.

The description you define for the field should appear when referencing that field. Here are some examples from Visual Studio Code:


More examples can be found in our wiki.

For translations, I have found simple translate to be pretty accurate and convenient.

Hopefully this helps! Good luck with your coding journey!

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@imai-makoto
Comment options

Answer selected by imai-makoto
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
feat/LuaCats Annotations Related to Lua Language Server Annotations (LuaCats)
2 participants