Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>LÖVE SnippetsNew to Visual Studio Code? Get it now.
LÖVE Snippets

LÖVE Snippets

yorik1984

|
18 installs
| (0) | Free
A comprehensive collection of code snippets for the LÖVE framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info
LÖVE snippets logo

  ♡ LÖVE ♡ VS Code Snippets  

LÖVE Snippets Generator License Lua LÖVE API

This extension brings the love2d-snippets collection to VS Code. For more detailed information, see the main snippets repository.

love.load()

🚀 Features

  • Universal snippet collection – the generated JSON files work in any editor that supports VS Code-style snippets compatible with any VS Code snippets loader. The snippets/ folder contains prepared snippet JSON files for all LÖVE modules
  • Standalone script – run in repository workflows (GitHub Actions, CI/CD, or plugin repos) to generate snippets automatically
  • GitHub Actions automation – optional CI workflow re-runs the generator to keep snippets up to date when the official love-api changes
  • Full API coverage – generates snippets for all modules, functions, callbacks, type methods, constructors, getters/setters, enums, and conf.lua

📝 What's included

  • Modules
  • Callbacks
  • Functions and Type methods
  • Constructors
  • Getters and setters
  • Enums as choice snippets
  • Conf snippets

For full instructions, see USAGE.md.

⚙️ Example settings

Setting Value Purpose
editor.tabSize 4 Matches common LÖVE/Lua indentation styles.
editor.insertSpaces true Converts tabs to spaces, preventing mixed indentation.
editor.snippetSuggestions "top" Shows snippet suggestions at the top of the IntelliSense list for faster access.
extensions.ignoreRecommendations false Allows VS Code to suggest this extension to other developers opening the project.

⭐ Recommended Configuration

{
  "[lua]": {
    "editor.tabSize": 4,
    "editor.insertSpaces": true,
    "editor.snippetSuggestions": "top"
  },
  "extensions.ignoreRecommendations": false
}

🔧 Per-Project (Local) Configuration

❓ Why Configure Locally

To ensure consistent snippet behavior across your team or isolate settings to a specific LÖVE project, you can configure the extension locally within your project's folder. This approach keeps settings portable and team-friendly.

❓ Where to Put Project Settings

VS Code allows you to define project-specific settings in a .vscode/settings.json file inside your project's root directory. These settings override your global user settings when that project is open.

  1. Create the .vscode folder in the root of your LÖVE project.
  2. Create a settings.json file inside that folder.
  3. Add the recommended configuration to tailor the editor for LÖVE development.

📢 Sharing the Recommendation with Your Team

To automatically suggest this extension to anyone who clones your project, create a .vscode/extensions.json file in your project root:

{
  "recommendations": [
    "yorik1984.love2d-snippets-vscode"
  ]
}

When your team members open the project, VS Code will prompt them to install the recommended extensions, ensuring everyone has the same snippet experience.

🎯 Benefits of Per-Project Configuration

  • ✅ Consistency: All contributors use the same tab size and snippet behavior.
  • ✅ Portability: Settings travel with the project via Git, so no manual setup is needed.
  • ✅ Isolation: Project settings do not affect your other Lua/LÖVE projects.
  • ✅ Team-Friendly: New members get the correct configuration automatically.

❗ Important Note

If you already have global user settings, the project-specific settings in .vscode/settings.json will take precedence when you are working in that project folder.

📜 License

MIT License

Built with ♡ for the LÖVE community
Report Issue • Discussion • LÖVE
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft