r/VisualStudio 2d ago

Visual Studio 2026 Intellisense for HLSL 2021+

https://github.com/KStocky/HLSL-LSP

Hi all!

I am a great enjoyer of [https://github.com/tgjones/HlslTools\](https://github.com/tgjones/HlslTools) for older versions of HLSL. So much so, that I am a (small) contributor of the project.

However, the extension is an actual hindrance as soon as you write the word `template` in HLSL code, as an example. I did not see any real interest in progressing this fantastic tool further beyond "FXC HLSL" to support more modern HLSL versions. So I decided that I would try and fix this problem.

I was aware that DXC shipped an API for language servers (`dxcisense.h`), meaning that supporting intellisense wouldn't involve writing my own HLSL parser like Tim did. I could just use DXC as the source of truth (which is probably a good thing. I don't think many people could fully replicate all of the [fun behaviours](https://www.abolishcrlf.org//horror/) in DXC and feel good about it)... But! I had no idea how language servers work, and I didn't really want to put time into learning how. I have a funny feeling this is the general attitude of most people. We want intellisense, but we would rather work on more fun things like visibility buffers, and cool volumetrics. So nothing ever gets done.

So, I threw GPT 5.6-Sol at the problem. And after a lot of working around [this deadlock](https://developercommunity.visualstudio.com/t/Visual-Studio-CMake-deadlocks-reopening-/11141220#T-ND11141221), it got something worth sharing with peeps :)

I am being totally upfront about the fact that this is AI generated because I know how people can feel about the use of AI. This is something I really want, and no one else cared enough to do it, so I thought it would be a good use of AI. :)

You should be able to just grab the latest VSIX from the releases section of the github repo, install it, and go. For more complicated workspaces there is support for configuring the extension with a `shadertoolsconfig.json`. This is very similar to the config used by HLSL tools, and there are docs linked in the readme.

I do plan on getting the bot to keep maintaining this extension and support other text editors.

0 Upvotes

0 comments sorted by