How to change file type from Miscellaneous file to Assembly-CSharp in VS

Zsolt Seiler 26 Reputation points
2020-11-21T20:14:06.783+00:00

Hi guys,

I need help in Visual Studio. The problem is the following: If I open a script from Unity it opens it and the file type is Miscellaneous Files. How can I change it to Assembly-CSharp? What I need to open it that way? Workloads other than the Unity one or something else? If anybody knows it please help me out. My apologies and early thanks!

Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} vote

Answer accepted by question author
  1. Dylan Zhu-MSFT 6,431 Reputation points
    2020-11-23T05:30:49.36+00:00

    Hi ZsoltSeiler,

    As far as know, there are two methods which could help to open your scripts with csharp editor:

    • Go to Tools/Options/Text Editor/File Extension, and then bind the file type to C# editor
      41811-image.png
    • Right-click the script in solution explorer -> Click the "Open with"
      41745-image.png

    Hope they could help you.

    Best Regards,
    Dylan


    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our **documentation to enable e-mail notifications if you want to receive the related email notification for this thread.**


0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.