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

Zsolt Seiler 21 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
0 comments No comments
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,426 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.**


1 additional answer

Sort by: Most helpful
  1. girahimar 1 Reputation point
    2021-08-14T12:44:57.6+00:00

    i have the same problem but i tried the 2 solutions and none of them is working

    0 comments No comments

Your answer

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