How to rename a class in VS Code and have it automatically changed in Unity

I have been using visual studio community and I really like that when you rename a class name with Ctrl RR, it changes the file name and anything related to this class in Unity.

But visual studio is getting slower and slower. And it often opens more than one instance (of the application) when I double click on a script in Unity.

Visual Studio is so much faster but I just can’t get it to handle the things in Unity when renaming a class. Is there a way to do so? Thanks in advance!

Hi,

Maybe it works, if you rename the filename in Unity. If it does not work, I don’t know any solution for that problem but manually renaming the filename and the classname.

Please feel free to ask our helpful community of students over on our Discord chat server.

Yes, I think will have to do that. Thanks! It still saves more time than having to wait for Visual Studio Community to load 100 times

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.