- Home /
How to make .shader open in Mono Develop, but C# still open in Visual Studio
I use Visual Studio for all my C# coding in Unity and it works perfectly, but I've recently gotten into writing shaders, but Visual Studio does not have the color corrections for a .shader file type. I've tried things such as NShader which hasn't worked for me because it's outdated.
I came to conclusion that the easiest way to make shaders have the color correction work is to write them in Mono Develop. I still want to use Visual Studio for all C# coding though.
Instead of switching my default IDE in Unity every time I open a different script type, is there a way to make it open Visual Studio for .cs, and Mono Develop for .shader?
Are you on Windows? You could try setting the file association yourself. Go to any shader file, right click it and select Properties. In the General tab, click the "Change" button where it says "Opens with:" and browse to the $$anonymous$$ono Develop exe.
That should set the file association to $$anonymous$$ono Develop for .shader files in Windows, which I believe is also the program that opens the file when double clicking it in Unity.
Not added as answer, because I'm not totally sure it'll work. ;)
Didn't work :( I wish there was some way I could right-click on the "Open" option and select which IDE to use ins$$anonymous$$d of always going to the default.
What @CHPedersen suggested worked for me. I'm using Unity 5.1.1f1 Personal.
Your answer
![](https://koobas.hobune.stream/wayback/20220613175852im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unity recompiles project (and regenerates .sln) on shader changes. 0 Answers
Shader graph adds background to my texture 1 Answer
Using TextFieldParser class from Microsoft.VisualBasic.FileIO 1 Answer
Why does Visual Studio not show tooltip (Intellisense?) documentation for standard Mono classes? 3 Answers
How to force the compilation of a shader in Unity? 5 Answers