Hello recently I started using only visual studio code for my .net core 2 project.
The problem I have found is the intellisense not working as i expect in vs code.
Always after using '.' to access avaible methods and properties no suggestions appear I have to push "ctrl+space" for them to appear.
And when I push "ctrl+space" it comes with suggestions that I can't use for anything.
Linq Example for none working intellisense
Same happens when I try to access the properties of a class.
Is it possible to get intellisense that work like in normal visual studio? I have installed C# extension for debugging and intellisense.
Proof of installed plugins
Related
I have Visual Studio Code (v. 1.69.2) running on OSX and it's not doing the following:
Doesn't highlight any classes (custom or system classes)
⌘ + F12 doesn't go to implementation of a class or method
Doesn't show tooltips over System classes indicating what library they come from, etc.
It does do the following:
Highlights basic system struts like int, double, string.
Gives intellisense autocomplete while typing.
Some background:
I have the C# (OmniSharp) extension installed and up to date. My VSCode is also up to date. My projects are all .net core 3.1, there are multiple projects in my folder along with a solution file. I've tried "⌘ + ⇧ + P" choosing "OmniSharp Select Project" and selecting the solution, but it doesn't resolve the issue.
The most annoying part is not being able to see the tooltips regarding what exactly a class is and what library it's coming from. For example I was "Using System.Security.Claims" and when I type "User" down in the code, it autocomplete it's available methods but I get no details on what the class is or where it comes from. Is this just the way things are with VSCode, if so it's bordline unusable.
Am I using the wrong extension? (seems to be the Microsoft suggested one)
Screenshots:
I ended up installing Visual Studio for Mac 2022 (not Visual Studio Code), for work with another project. This re-installed .net core 3.1 on my machine. After that my Visual Studio Code IntelliSense (OmniSharp Extension) started working. Now I can right click and go to definition etc.
So not sure what the initial issue was, but seems a re-install of .net core 3.1 worked. If anyone else runs into the issue, I'd suggest first removing the OmniSharp Extension, restarting your Mac, restarting VSCode and re-installing the extension. If that doesn't work uninstall VSCode entirely and re-install. Basically after a fresh install of .net core framework everything worked.
I need help installing IntelliSense for C# in VS Code. I tried googling but haven't found any good answer to my question. Is there a option or extension or something in VS code that i can use to install Intellisense for C# on it. I also cant't use Visual studio because I'm on Linux.
Thanks!
The C# extension should include everything you need to get started including IntelliSense: https://code.visualstudio.com/docs/languages/csharp
For Unity development, which uses Mono, you should also use the Mono extension as noted in the C# extension documentation: https://marketplace.visualstudio.com/items?itemName=ms-vscode.mono-debug
I've got a problem with C# in Visual Studio Code.
Support, debug and intellisense for c# is not working on new and old project
I search for this problem and found nothing, idk what I should do...
before i reinstalled my pc this was working
You need to install the C# extension for VS Code
from extensions store
I'm using Visual Studio Code, as a code editor for Unity 5.
Visual Studio Code updated itself, after that I found that my C# IntelliSense seems to be broken. It doesn't show suggestions for my classes, it shows only c# syntax suggestions. I've checked all the settings, and logs so everything seems to be correct. There is right workspace settings, OmniSharp is running an no errors in Log. I've tried uninstall/install VSCode but no luck. I can't understand what is the problem, and I need your help.
Any solutions? Screenshots are below.
It may have to do with the C# Omnisharp plugin.
Support for .csproj projects has been temporarily disabled on OS X and Linux. This will impact anyone doing .csproj development on OS X or Linux (e.g. Unity, Xamarin, etc.). Rest assured that this will be restored in the near future. However, for now, you can use the Legacy C# Support extension.
https://marketplace.visualstudio.com/items?itemName=ms-vscode.csharp
I read that there is no problem to use Visual Studio 2012 for projects written of Visual Studio 2010. I open my project in vs 2012 and start it, everything was working. I can make changes in the existing classes and pages, no problems occur. After that I decide to add new class and here nothing was working correctly:
References to the other classes, if I add DataSet and add using System.Data it is not shown like special word(in green)
No errors no warning about new classes shown by the compiler. If I write 12312312 and build no error is shown.
Errors are shown in the browser, but I strongly prefer to have a working compiler.
Do you know what is the problem and how to fix it ?
Cleaning and Rebuilding is the way to start.
For more detailed info, take a look at this post:
Visual Studio 2012 - Intellisense sometimes disappearing / broken
For the Compiler not showing errors, give this a shot:
Delete the files in this folder:
%AppData%\Roaming\Microsoft\VisualStudio\11.0\ReflectedSchemas
Pulled from Intellisense and error highlighting not working by default in VS2012