Hi! I am following along on the Complete Unity C# Development Course on Unity, however I have run into a problem. When pressing Control + . I dont see an option for extract method. Could someone help me with this?
Hi Nathan,
Welcome back to our community!
Please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity
If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471
Depending on your version of Unity, it might be that you will have to install the “Visual Studio Code Editor” package in Window > Package Manager in Unity.
- Press
Ctrl + Shift + P
. - Type “OmniSharp: Select Project” and press Return.
- Select the solution workspace entry.
Maybe you’ll have to reboot your computer. Then launch Unity again and open one of your scripts.
Did this help?
See also:
- Forum User Guides : How to mark a topic as solved
Hey Nina,
I did everything that you mentioned, but to no avail. I double checked every extension and reinstalled vscode multiple times, yet nothing. I am utterly perplexed as to why this isn’t working, because just looking around online it seems that no one else is having this problem.
Ah, I forgot to run it in administrator mode. I guess that was the problem, because after trying that it works perfectly.
This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.