https://github.com/litefeel/shaderlabformatter
An VSCode plugin for formatting of Unity ShaderLab
https://github.com/litefeel/shaderlabformatter
formatter shaderlab vscode-plugin
Last synced: 24 days ago
JSON representation
An VSCode plugin for formatting of Unity ShaderLab
- Host: GitHub
- URL: https://github.com/litefeel/shaderlabformatter
- Owner: litefeel
- License: mit
- Created: 2019-03-17T16:47:23.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2026-01-24T18:10:35.000Z (about 1 month ago)
- Last Synced: 2026-01-24T21:17:12.508Z (about 1 month ago)
- Topics: formatter, shaderlab, vscode-plugin
- Language: TypeScript
- Homepage: https://marketplace.visualstudio.com/items?itemName=LiteFeel.shaderlabformatter
- Size: 779 KB
- Stars: 11
- Watchers: 2
- Forks: 6
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# ShaderLab Formatter





[](https://www.paypal.me/litefeel)
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