Extract Method Not an Option

Whenever I try to refactor the code either with Ctrl+. or through the refactor context menu I get a bunch of options, but none of them are Extract Method.

I get options for wrapping the code up in other structures (if, try, while, and do to name a few), but none of them have anything to do with extracting methods, or functions, or whatever.

I’m running Visual Studio Code 1.91.1 with the following extensions:

  • Net Install Tool v2.1.1
  • C# v2.39.29
  • C# Dev Kit v1.8.14
  • Unity v1.0.2

I’ve tried re-installing the extensions, re-installing VSCode, and verifying that VSCode is my external IDE for Unity 2022.3.18f1.

If anyone knows what’s wrong, or can at least point me in the right direction, I’d be much obliged.

Hi,

Have you already seen this thread?


See also:

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

Privacy & Terms