question

ZsoltSeiler-9090 avatar image
0 Votes"
ZsoltSeiler-9090 asked girahimar-0289 answered

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

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!

vs-general
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

DylanZhu-MSFT avatar image
0 Votes"
DylanZhu-MSFT answered ZsoltSeiler-9090 commented

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.


image.png (11.8 KiB)
image.png (23.3 KiB)
· 1
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Dear DylanZhu-MSFT,

Thank you for answering my question! Hope you have a great day!

0 Votes 0 ·
girahimar-0289 avatar image
0 Votes"
girahimar-0289 answered

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

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.