Search code examples
c#visual-studio-codeintellisense

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


Solution

  • 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:

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

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


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