h_djebli
h_djebli

Reputation: 2569

Intellisense and code suggestion not working in Visual Studio 2012 Ultimate RC

I have just downloaded and installed Visual Studio 2012 Ultimate RC, but I'm having an issue with the intellisense: it does not work until I press Ctrl+Space. Code suggestions are disabled also (method parameters for example).

I think the problem is with the VS installation, because at the end of the process the following message is shown: "The event log file is full".

Why do I have this problem, and what can I do to fix it?

Upvotes: 229

Views: 260773

Answers (22)

sajawal khan Jadoon
sajawal khan Jadoon

Reputation: 153

Apply the following fixes to solve the issue of IntelliSense in Visual Studio: You can find the full solution here

  • close and reopen the affected file
  • close all opened documents and reopen the affected file
  • Refresh Solution Explorer by clicking the Refresh icon
  • Unload and reload affected project(s)
  • Close and reopen Solution
  • Restart Visual Studio
  • After closing Visual Studio, delete the .vs folder in the Solution and Project directories. Upon reopening the solution, Visual Studio will rebuild the IntelliSense and Profile cache.
  • Go to the Tools > Options > IntelliCode > General: select Use Defaults
  • Go to the Tools > Options > IntelliCode > General: Uncheck and Recheck C# Suggestions
  • Go to Tools > Options > Text Editor > General: Under Display on the right, ensure Show error squiggles, is checked.
  • Go to Tools > Options > Text editor > All Languages: Under Statement Completion, uncheck and recheck the options “Auto list members” and “Parameter information”.
  • Go to Tools > Options > Text editor > click the affected Language e.g C#, CSS etc.: Under Statement Completion, uncheck and recheck the options “Auto list members” and “Parameter information”.
  • Go to Tools > Options > Text Editor > C# > IntelliSense: Uncheck the experimental options (beta options), these might be broken at the time
  • Go to Tools > Import and Export settings > Reset all settings (to Reset VS Settings)
  • Re-install IntelliCode in Visual Studio. Launch VS Installer. Click Modify. Under Individual Components, Search and uncheck IntelliCode (uninstall). Click Modify. Repeat the steps to re-install IntelliCode.

Extra Considerations (if Applicable):

  • For C++: Tools > Options > Text Editor > C/C++ > Advanced > Disable database > False

  • For Python:Click the "Python X.X" button (bottom left of the status bar). Toggle different values

  • If files were included/pasted in the project, toggle their Build Action Property (e.g set Content to Compile)

  • Delete Files in the from the Folder: %AppData%\Microsoft\VisualStudio\14.0\ReflectedSchemas

  • Tweak ReSharper (if installed): Disable & re-enable the ReSharper. Set IntelliSense to Visual Studio under ReSharper

  • Be careful with the copied code and files, some elements may not be initialized properly

  • Extensions: If a 3rd party extension is causing the trouble, disable it

Upvotes: 0

Serge V.
Serge V.

Reputation: 3623

My quick solution was to close all opened files in text editor area and then reopen them again from Solution Explorer.

Upvotes: 1

pyccki
pyccki

Reputation: 693

Look at this post here.

This worked for me:

Delete the files in this folder. vs2010:

 %AppData%\Microsoft\VisualStudio\10.0\ReflectedSchemas

vs2012;

%AppData%\Microsoft\VisualStudio\11.0\ReflectedSchemas

VS Ultimate 2013;

%AppData%\Microsoft\VisualStudio\12.0\ReflectedSchemas

VS Professional 2015;

%AppData%\Microsoft\VisualStudio\14.0\ReflectedSchemas

Upvotes: 27

Siddarth Kanted
Siddarth Kanted

Reputation: 5914

enter image description here

  1. Go to tools->options.
  2. Make sure the above check boxes are checked.

Upvotes: 4

Track
Track

Reputation: 109

Resharper->Options->IntelliSense->General Set to 'Visual Studio native IntelliSense...'

Upvotes: 2

Diego Mendes
Diego Mendes

Reputation: 11361

Generally I face the same problem when I copy some snippets from internet with some special chars that breaks the Intellisense.

It happened a few times with me, I discovered the problem after deleting the file and creating a new one, now when I face the same problem, fist I restart the Visual Studio, if this doesn't resolve the problem, I remove the last snippet I copied from internet and do it by hand, them the problem is gone.

Upvotes: 0

It's PD
It's PD

Reputation: 41

Its very Simple,

  1. Close visual studio (Having Solution)(Remember Configuration and Solution type and start up project)
  2. Go to solution path
  3. Delete SolutionName.suo
  4. Open Solution again
  5. set Configuration and Solution type and start up project (if it is changed)
  6. Build and check

Reason why it happend In my case i have changed the references of some project

Upvotes: 1

Ian Rathbone
Ian Rathbone

Reputation: 73

I've just had this happen to me - and (while it was not instantly obvious) it was due to Resharper (R#) being disabled during a licensing issue.

Enabling Resharper fixed this for me!

Upvotes: 0

Wolf
Wolf

Reputation: 6499

Sometime your code syntax has error, like you use " in ", it must be " ...'...." For help you quickly detect problems, you click Design button, vs try to render, and it will show the line of error

Upvotes: 0

Shrivallabh
Shrivallabh

Reputation: 2903

Restarting VS2012 should fix the problem.

Upvotes: 118

XristosK
XristosK

Reputation: 264

My solution (VS 2013) was to run as an administrator

Upvotes: 1

Tanny
Tanny

Reputation: 55

I had been facing this problems since 2 weeks, finally figured it out using a Sysinternal tool called Process monitor (ProcMon.exe). The problem has to do with the automatic updates settings. I applied the below solution and got it working

Solution: Tools -> Options -> Environment -> Extensions and Updates -> (uncheck) Automatically check for updates->OK

Upvotes: 0

PiotrWolkowski
PiotrWolkowski

Reputation: 8792

In my case .csproj file got corrupted and Visual Studio excluded some class files from the solution (But they were still visible in Visual Studio so the issue wasn't obvious at first sight). In these files intellisense was not available. So the fix was to add the files back to the solution.

Upvotes: 0

amalgamate
amalgamate

Reputation: 2310

One solution is to disable the resharper, or spell checker extension and restart. Granted this is not ideal.

Upvotes: 0

LCFactorization
LCFactorization

Reputation: 1722

I occasionally encountered the same problem as the OP.

Unfortunately, none of the above solutions works for me. -- I also searched from internet for other possible solutions, including Microsoft's VS/windows forum, and did not find an answer.

But when I closed the VS solution, there was a message asking me to download and install "Microsoft SQL Server Compact 4.0"; per this hint I finally fixed the problem.

I hope this finding is of any help to others who may get the same issue.

Upvotes: 0

Noxxys
Noxxys

Reputation: 919

None of the solutions worked for me. I noticed that the problem was only occuring in one xaml file, and not in other xaml or c# files.

I had an extension called QuickConverter that allows to create custom bindings with in-line converters. This was messing up with Intellisense and this was not detected as an error while building or running the app.

My advice is:

  • Check if Intellisense stops working in all files or just a particular one
  • If it's just one file, look for red or blue squiggly lines and you will find the culprit

Upvotes: 0

user1585204
user1585204

Reputation: 977

It got frustrating for me as well but I figured out my own answer. Restarting did help but I found why I ran into trouble: I'd copied and pasted an ASP Panel with controls I'd need to re-use. I only had those in the first Div tag working. All others needed to be set up, so I said "Aha ... let me comment out the remaining Div Tags that aren't set up ..." and sure enough, intellisense came right back on.

So not only will it fail to work if the cursor is below a code error but it can fail to work if you're a copy / paste type like me.

Upvotes: 1

Farjad
Farjad

Reputation: 257

The basic idea here is to force a resync of the database Intellisense is using.

If the reference is to a project within your solution. Remove the project. Then add the reference using browse option from the exact path of the project you just removed. Do a quick build and check to ensure reference is picked up correctly. Now add the old project back to the solution and remove the old reference and add it as part of the solution.

This idea of forcing the resync of the database could also be done in other ways too. For example by using an absolute folder path.

Upvotes: 4

Mitch Stokely
Mitch Stokely

Reputation: 191

A. Save or export out your Import/Export settings:

Tools->Import and Export settings

B. Do the Import/ Export reset:

Tools->Import and Export settings->Reset all settings.

C. Go back and reload your original settings again! Intellisense works and you have your original settings back!

Upvotes: 19

mqingqing123
mqingqing123

Reputation: 165

I use this to solve it, go to cmd line

devenv.exe /setup /resetuserdata /resetsettings

Upvotes: 14

Houda
Houda

Reputation: 836

Another possible solution is to completely reset the settings. This is what fixed it for me:

Tools->Import and Export settings->Reset all settings.

Upvotes: 26

user1831021
user1831021

Reputation: 1869

Go to

Tools->Options->Text Editor->C# (or All Languages)->General

and enable Auto List Members and Parameter Information in right hand side pane.

Upvotes: 186

Related Questions