Files
overextended.github.io/pages/guides/vscode.mdx
T
JagandLuke 1d2c490b26 refactor: Add h1 headers to all pages missing it (#137)
* refactor: Add h1 headers to all pages missing it

* refactor: missed example h3

* change hooks example heading to bold text

---------

Co-authored-by: Luke <[email protected]>
2023-07-08 11:08:43 +02:00

44 lines
1.6 KiB
Plaintext

---
title: VS Code
---
import { DownloadButton, GhButton, DocButton } from '@components/button';
# VS Code
Visual Studio Code is our recommended editor when working with Lua.
<DownloadButton link="https://code.visualstudio.com/Download" />
## Recommended extensions
Extensions let you add languages, debuggers, and other tools to VS Code - improving your developer experience.
### sumneko.lua
Lua Language Server provides numerous language features to make development easier and faster, e.g.
- Annotations
- Autocompletion
- Code formatting
- Diagnostics/warnings
- Dynamic type checking
- Syntax checking
<div className="flex flex-wrap gap-1">
<GhButton link="https://github.com/LuaLS/lua-language-server" />
<DownloadButton link="https://marketplace.visualstudio.com/items?itemName=sumneko.lua" />
<DocButton link="https://github.com/LuaLS/lua-language-server/wiki" />
</div>
### overextended.cfxlua-vscode
Works alongside Lua Language Server to provide function and type declarations from Cfx's [Lua runtime](https://github.com/citizenfx/fivem/blob/master/code/components/citizen-scripting-lua/src/LuaScriptRuntime.cpp), [Lua dialect](https://github.com/citizenfx/lua/tree/luaglm-dev/cfx), [environment globals](https://github.com/citizenfx/fivem/blob/master/data/shared/citizen/scripting/lua/scheduler.lua), and game natives.
![](https://user-images.githubusercontent.com/65407488/141656446-21f9105a-9371-4bb3-9089-ab672930f830.png)
<div className="flex flex-wrap gap-1">
<GhButton link="https://github.com/overextended/cfxlua-vscode" />
<DownloadButton link="https://marketplace.visualstudio.com/items?itemName=overextended.cfxlua-vscode" />
</div>