No code actions available

when I click ctrl+. , the method won’t extract, no code actions available message appears .so I just do things manually. is it okay?
Also, when I double-click on NewMethod and click f2 nothing happened even when I right-click with the mouse rename symbol doesn’t appear. so I just rename it normally again! is it okay?

1 Like

Hi Youssef,

In the end, only the code/text matters. How you create it, does not matter. So, yes, renaming the method without the “Rename” option is perfectly fine.

Since we use a script editor to save us time, try to make it run properly. Otherwise, it’s nothing more than a text editor.

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.

  1. Press Ctrl + Shift + P in VS Code.
  2. Type “OmniSharp: Select Project” and press Return.
  3. Select the solution workspace entry.

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


See also:

1 Like

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

Privacy & Terms