Skip to Content
DocumentationFiveMCode Editor Setup

Code Editor Setup

Visual Studio Code is a lightweight but powerful source code editor. While we recommend using Visual Studio for C#/C++ development, VS Code is excellent for Lua development in FiveM.

Download

You can download Visual Studio Code from their official website.

Essential Extensions

Lua Development

  • Lua

    • Provides core Lua language support
    • Syntax highlighting
    • Code completion
  • CfxLua (FiveM/RedM) IntelliSense

    • Provides IntelliSense, diagnostics and annotations via Lua Language Server
    • Support for FiveM/RedM natives and runtime globals
    • Support for FiveM’s Lua implementation

Optional Extensions

Here are some additional extensions you might find helpful:

Visual Customization

You can browse many more themes and icon packs on the VS Code Marketplace

Development Tools

  • GitLens
    • Enhanced Git integration
    • Use git from within VS Code
    • Requires Git installation

Next Steps

On our next page, we’ll explore essential resources to improve your development experience and enhance your scripts!

Last updated on