简体   繁体   中英

Vscode Omnisharp Always No Quick Fix

The VSCode "quick fix" has never been available for me in C#.

Even the most basic quick fix, like importing namespaces for class, auto-implement missing methods from interface, are not available.

I am not sure what went wrong (or maybe this is normal in VSCode? I came from VS Studio C# and these options are available there. Maybe I am just assuming too much).

Here is a very simple illustration of what I meant (Sorry for the Chinese error message - I am not sure how to change Omnisharp locale. It is the standard Compiler complaint saying that you are not implementing one of the interface method):

没有快速修复

Environment:

  • Microsoft C# Plugin (ms-dotnettools.csharp): v1.24.4
  • VSCODE: v1.66.2 (user setup)
  • OS: Windows 10

I tried:

  • Using "Ctrl+." instead (as suggested here )
  • Adding `"omnisharp.path": "latest" to Omnisharp extension settings (as suggested here )
  • reinstalling omnisharp
  • reinstalling VsCode

So far none worked.

I can see that if I press cmd +. (control.) then it shows all available quick fix.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM