My project has become bloated and I want to easily rename certain script to help find it easier.
It seems like the only process I can find is to change the script name in the editor and then open it in code editor and also change the class name.
This process is a bit tedious with multiple scripts.
I’ve already looked online and it seems like on windows you can ctrl+R ctr+R in VStudio and it will have a drop down modal that will rename the class name and script in the editor, although I’m on a Mac and this feature doesn’t seem to be present.
Am I missing something?
I just read this article:
And I’d suggest you to read it too. Apparently, you need the compiler “Roslyn”. I don’t know how to use it and how to implement it, but I hope this helped you.
I’d also stick with vscode on mac, because apparently vs is scheduled for retirement in 08.24
@andrew-lukasik I’ve had lots of issues with VSCode’s code completion with Unity. Seems like sometimes it works partially, and other times not at all. That’s why I swayed more towards VStudio. I’d hate to lose code completions again just to be able to refactor naming a script.
I’m wondering why the windows VScode has the functionality, yet Mac doesn’t?
Wait what, this does not work with mac? So what happens if you press Cmd (⌘) + R
? Nothing?
Did you try using F2
or just select, right click and rename?