Shouldn't shaders be included in Visual Studio 2015 projects?

Since Visual Studio 2015 has support for shaders, wouldn’t it make sense to include them in the project files?

I can toggle Show All Files and filter .shader and .cginc and open/include the shaders. When the project files are refreshed I have to repeat that step.

1 Like

I have no problem editing shaders by double clicking them inside the unity editor which opens them in VS automatically. What specifically are you having a problem with?

I want to be able to use the quick search function (ctrl+f) in Visual Studio to find a keyword in several shaders. The quick search only works for files included in projects.

2 Likes

In case Unity staff is looking at this post, I reported this issue as: (Case 715442) VSTU: Solution does not contain shader files

1 Like

Oh! Go to Editor Settings, there’s a new section “C# Project Generation” with a field “Additional extensions to include”, There you can add “cginc;shader” and they will be included!

Guess you can close this topic and issue 715442. :sweat_smile:

Although maybe they could be included by default.

1 Like

And don’t forget .compute files :slight_smile:

They forgot .compute files :frowning:

Adding it in the additional extensions doesn’t seem to be respected either

Any updates on this? It’s really frustating to work on anything compute based right now :frowning: