Extract Method does not show up for me when using ctrl, Full Stop or right click

Hi, I’m having an issue with this part where whether I choose to use ctrl + full stop or right click quick actions and refactor it automatically chooses “Invert if” and doesn’t give me any of the other 2 options.

Edit I figured out a way to do it without those options but im still would like to figure out why it doesnt work in those ways.

Hi,

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.

Maybe you’ll have to reboot your computer. Then launch Unity again and open one of your scripts.

Did this help?


See also:

1 Like

Hi! Thank you for the response, I actually resolved it an hour or so after posting this. I had to go to an older version of the editor (for some reason) but it works now! I appreciate it!

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

Privacy & Terms