Control Period in video 5:09

How do I create a new method in Unity like he is doing at 5:09? I am pressing “CTRL .” and there are “surround with” options instead of creating a new method. Thanks for any tips.

Hi Matt,

Please follow the instruction on this website and make sure all required extensions are installed:

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 website. Here is the link:

Did this help? :slight_smile:

See also:

Small tip to throw in here, if you follow the Visual Studio instructions that Nina provided and are still experiencing trouble, try closing the individual scripts while inside of Visual Studio. I practically tore my hair out having done everything I should have done without results. (I ran into this issue following along with the Project Boost lecture “Refactor with Extraction Method”)

Rebooting Visual Studio did not resolve anything, and neither did rebooting my computer; but for some reason, manually closing each script and re-opening them individually after ensuring all extensions and framework components were installed correctly is what did the trick!

Good luck, hope you managed to get it sorted out!

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

Privacy & Terms