C # intellisense not working in VS Code

I am using Visual Studio Code, and I already downloaded the C # OMNISharp plugin into my system, and it works fine in my existing project / solutions.

However, I just created a new solution and a new project in Visual Studio code, and it looks like this solution, Intellisense or any other Omnisharp features just don't work. I have tried the following things:

  • Restarting Visual Studio Code
  • Disabling and enabling my OmniSharp module

In addition, I noticed that when the solution is created in Visual Studio, it has a lot of code that looks like this:

Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "src", "src", "{AEA16303-6991-4FF1-A3A9-72D892D7968C}"
EndProject

Basically, these are all links to projects. However, when the solution is created by Visual Studio Code, there is no such section. This solution works and compiles fine, only it looks fundamentally different from what the Visual Studio solution looks like.

However, nothing works. Is there anything I can try to make it work? Any ideas?

+4
source share
3 answers

How did you create the project? In order for Intellisense to work correctly, the project must have a certain structure.

Assuming you have sdk.net for mac and the omnisharp extension installed:

Try the following:

  • Open the integrated terminal (View => Integrated terminal)
  • Create a new directory to host the test project: "testproj" eg => mkdir testproj

  • dotnet cli = > dotnet new console

, intellisense.
.NET core Mac.

+2

*.sln *.csproj "files.exclude".

:

Code -> Preferences -> Settings -> "omnisharp.useMono": true/false

.

, MonoDevelop Visual Studio 2015/2017 , VS-Code.

+3

OneDrive Windows 10? Windows 10 # , OneDrive " ". , Github

+2

Source: https://habr.com/ru/post/1691660/


All Articles