Adds linting and syntax highlighting for AnyFX files to Visual Studio Code.
Make sure you set the anyfx.anyfxCompilerPath
setting to a valid compiler.
anyfx.anyfxCompilerPath
: The path to the anyfx compiler executableanyfx.anyfxCompilerArgs
: Additional arguments for the anyfx compiler executableanyfx.additionalIncludes
: Additional include directories when compiling and linting shadersanyfx.requireSaveToLint
: By default, linting will occur with every text change. Enable this option to only lint when you save the file.anyfx.additionalFileExtensions
: Additional file extensions which should be considered as AnyFX files.
The linter will look for anyfx_properties.json
in the .vscode
folder in your workspace root.
Supported properties:
includeDirs
: [paths] - An array of include paths to pass to the compiler.
- Symbols support!
-
Duttenheim - https://github.com/duttenheim
-
mjdave (vscode-shaderc) - https://github.com/mjdave/vscode-shaderc
- Used as reference, inspiration and as starting point for this project. See attributions.txt.