Edit DirectX shaders in Visual Studio with a distinct HLSL color palette, IntelliSense, and live diagnostics from the DirectX Shader Compiler (DXC). The extension supports .hlsl and .hlsli files, with samples for vertex, pixel, compute, and raytracing shaders.
Free to download and use.
What’s included
HLSL syntax highlighting gives intrinsics, user-defined functions, shader semantics, attributes, ray flags, and register bindings their own colors. Adjust the palette in Visual Studio’s Fonts and Colors settings.
Completion and Parameter Info suggest in-scope functions, types, and struct members. Press Ctrl+Space for suggestions or Ctrl+Shift+Space inside a call for its parameter list and overloads.
Hover information shows declarations, macro definitions, and descriptions for common intrinsics, attributes, and raytracing flags.
Navigation includes Go to Definition, Peek Definition, and opening #include files. Use the editor navigation bar to jump between functions in the current shader.
DXC diagnostics check unsaved edits as you type. When a C++ project supplies a supported DXC Custom Build Tool command, the editor also validates the target profile, entry point, and code generation when you open or save the shader.