Slang VS Code extension

VS Code extension page

GitHub Repo

If you like using VS Code (like me), you can now develop shaders without needing to sacrifice syntax highlighting or needing to see squiggly red lines everywhere. Here are some things I like:

  • Include-file aware highlighting and hover help
  • Go-to and peek friendly semantic resolution
  • Aware of RetroArch built-ins like *Size, OriginalFPS, EnableHDR, etc.
  • Clear highlighting of different variable use cases: UI parameters, function parameters, macros, vertex/fragment variables, etc.
  • Includes real GLSL validation, just have a valid GLSL validator installation in your path

You can install it directly from within VS Code itself. Just search for ‘Libretro Slang’ under extensions.

5 Likes