Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
2
Question by xKriostar · Jan 08, 2015 at 07:58 AM · shadervisual studiomono

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?

Comment
Add comment · Show 3
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image CHPedersen · Jan 08, 2015 at 08:09 AM 2
Share

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. ;)

avatar image xKriostar · Jan 08, 2015 at 08:17 AM 0
Share

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.

avatar image Cup0fJoe · Jul 14, 2015 at 04:18 PM 0
Share

What @CHPedersen suggested worked for me. I'm using Unity 5.1.1f1 Personal.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

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


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges