Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

why is Intellisense not working in my VS Code?

I am working on vs code. When I open any folder the IntelliSense is not working when I hover the mouse over any text. It was working before but now I don't know why it's not working. Kindly help... imagereference


2 Answers

This is a very common issue we face as developers, and it might need to try different approachs to sort it out. Try the following options and let me know if any of them works.

Solution 1 :

  1. Ctrl+Shift+P
  2. Write "OmniSharp: Select Project" and press Enter.
  3. Choose the solution workspace entry.
  4. Then enable the C# extension for "OmniSharp : Project"

Solution 2 :

  1. Selecting a project.json-file is opening a DNX-project and VSCode will load that project plus the referenced projects.

  2. Selecting a *.sln-file is opening a MSBuild-project. It will load the referenced *.csproj-projects and sibling or descendant project.json-files but no other project files that are referenced from the solution file.

  3. Selecting a folder will make VSCode scan for *.sln and project.json files and VSCode will attempt to load them all. More info see: https://github.com/OmniSharp/omnisharp-vscode/issues/1889

Solution 3:

  • Download C# v1.24.0 extension can fix the IntelliSense for you.

  • ( Try older version from the latest published version). For example, Go to Extensions to find your current extension ( lets say x.28.0), then install one of the previous version ( let's say x.27.9)

Solution 4: For bootstrap and HTML IntelliSense, add the following extensions:

  • HTML HTML CSS Support
  • IntelliSense for CSS class names in HTML

Solution 5:

  1. Remove all extensions related to C#

  2. Remove all extensions related to .Net

  3. Close the VSCode and reopen it again

Solution 6:

  1. Uninstall VSCode (using a cleaner to remove all its data from Appdata)

  2. Reinstall it again


NOTE : All solutions need to close your VS and reopen it again.

like image 177
Fiad Avatar answered Oct 31 '25 10:10

Fiad


For me solution 2 worked. C# IntelliSense did not work with C# Extension v1.25.0. Solution involved:

  1. Download the old version of C# Extension 1.24.4 vsix
  2. Install vsix manually to VS Code:
  • Open VS Code.

  • Open the “Extensions” sidebar (you can use “Ctrl+Shift+X”).

  • Click on the ellipsis icon in the top right corner of the menu.

  • Select “Install from VSIX…” VS Code will open a document browser.

  • VS Code will now begin the installation process of the extension.

This happened to me on 2 separate machines

like image 24
Jason Doyle Avatar answered Oct 31 '25 12:10

Jason Doyle