ShaderLab Formatter

February 3, 2026 ยท View on GitHub

GitHub License Visual Studio Marketplace Version Visual Studio Marketplace Rating Visual Studio Marketplace Downloads Visual Studio Marketplace Installs Donate

An VSCode plugin for formatting of ShaderLab

Configuration

shaderlabformatter.indentation.conditionMacro - indentation for condition macro.

The value:

  • dont - do not indent the condition macros
  • indent - indent the condition macros like bracket
  • normal - indent the condition macros like normal code

shaderlabformatter.tags.formatMode - Controls how Tags blocks are formatted. Fog blocks always remain single-line.

The value:

  • singleline - Prefer single line, only keep multi-line when comments exist in Tags block
  • multiline - Each tag on its own line
  • multiline-if-multiple - Prefer single line, keep multi-line when there are more than one tag