Visual Studio 2012 and Intellisense - c#

I think this is just happening to me, but every time I start my project in VS I have to do devenv.exe/resettsettings otherwise the intellisense doesn't work. Does anyone know any special reasons as to why?

These options should be enabled:
Tools->Options->Text Editor->C#->General->Auto list members
Tools->Options->Text Editor->C#->General->Parameter information
Tools->Options->Text Editor->C#->Intellisense->Show completion list after a character is typed
If it doesn't work try this:
Tools->Import and export settings->Reset all settings

after many posts, I can solve this problem well:
Execute developer prompt command for visual studio 2012 --> gacutil /u Microsoft.VisualStudio.CSharp.Services.Language.Interop
solved the problem for me.

Close the current Tab (in which Intellisense is not working) and reoppen it. Many times this was enough for me, boring, but enough.

Related

Visual Studio doesn't show me the red squiggle Intellisense errors [duplicate]

My Visual Studio (2008) Editor has stopped to underline Errors (this nifty wavy red lines). I can't really tell when, but it can be related to the installation of .Net Framework 3.5 SP 1 or the MVC Beta (which I guess is unlikely). Furthermore have I installed and uninstalled both CodeRush and Resharper for evaluation purposes (decided not to keep either one of them).
Does anyone know the problem and how to restore this functionality again?
Have you checked Tools→Options...→Text Editor→C#→Advanced→Underline errors in the editor?
I usually like to reset my settings after messing around with plugins, as they tend to mess with settings: Tools→Import and Export Settings...→Reset all settings.
About possible causes.
For VS 2012 and 2013 if you have more than one instance of Visual Studio on different machines binded to one "live" account and have installed ReSharper on one of them, it disables the native IntelliSense and error underlines (to replace by it's own rules) that will be synchronised through your account to another machine without ReSharper.
Found it in Visual Studio 2019 as: Tools > Options > Text Editor > General > Show error squiggles
This is generally called Disable Squiggly or Wavy lines in Visual Studio.
How you will do in Visual studio 2013?
TOOLS -> Options... -> Text Editor -> C/C++ -> Advanced -> Disable Squiggles: True/False (Under IntelliSense) -> Press OK
I know its an old question, and with various solutions, but I have fixed it in different way. I'm working with Unity3D on my C# code using VS2017, when suddenly VS decides to stop underlining error while im typing. However, if I close the file tab and reopen, it suddenly undelines the error.
For example:
class A {
public int x;
s;
}
should obvsiouly give an error for that lonely 's' symbol. But, VS doesn't underline it until I close and reopen this file tab.
Solution:
Copied the entire Unity Project folder (which is like a regular VS Solution folder basically) and worked with the new folder, which issue was gone there.
For visual studio 2017 act according to HeeJae's comments in:
https://developercommunity.visualstudio.com/content/problem/113112/design-time-error-checking-isnt-working.html
i.e:
Hi. you are probably hitting a known issue. can you try this?
1.Update to latest release If that doesn’t solve it
2.Go to Tools\Options\Projects and Solutions\General and uncheck “Allow parallel project initialization”.
3.Close VS.
4.Delete the “.vs” directory beside their solution file.
5.Reopen VS.
..
thank you
You can re-enable the "Allow parallel project initialization" option after the issue was solved.
I tried to upgrade VS, reset VS settings, clear VS cache and everything people do conventionally but none of them solved this issue! At the end the mentioned solution worked for me magically.
Good luck
Unloading and loading same project again from the solution does the trick. Just right click on the project and click "Unload Project". Once unloaded, again right click the same project and click "Reload Project". Error highlighting will return.
I had the same issue with 2017. There was a 'disable intelisense' option, make sure that is set to false.
For everyone wondering in 2021..
search for "C_Cpp.errorSquiggles" in the settings.
Make sure to have it active for the user, as well as the workspace.
No need to restart Visual Studio.
For me (VS 2019) , after trying the other answers also, setting the scope of analysis from "Current document" to Open document" brought back the missing error markers
Just go to settings and search for errors and Image in Error Squiggles. You can see the Error squiggles (Modified: Workspace - Right now you can't see it because I modified it). Just click on modified and you will see the disabled option. If by mistake you disabled it, just enable it and you can see the red line errors again in your code.
In latest edition, check for .vscode folder in same project folder. There will be a setting.json file in that. Delete the key value pair of "C_Cpp.errorSquiggles": "Disabled". Restart the vs code.

Visual Studio Code invisible buttons

So I recently have had an interest in learning C# and so I downloaded Visual Studio Code, assuming that it would be the best place to start. The biggest problem at the moment is that everything looks so empty because buttons are invisible. I can still program and things just fine, it's just hard to know what I'm looking at when half of the UI is missing.
Here is a pic of what I'm explaining:
https://i.gyazo.com/a3f8b0ae48c8fcdc15d92c6ce81e34eb.png
As you can see, the UI buttons on the right aren't visible.. If anyone has experienced this bug and has found a fix for it, that would be great! Thanks guys!
I would suggest trying Visual Studio Community Edition instead of Code. It's also free and includes a lot more functionality.
Martins answer is not targeting the original question, so I suggest to remove it. You are seeing invisible icons because of an issue in VS Code that we noticed on some Windows installations. We use SVG icons and sometimes the Windows registry is not having a correct entry for their file type. The fix is documented on our FAQ page (https://code.visualstudio.com/Docs/FAQ):
Open an Administrator Command Prompt.
Type REG ADD HKCR\.svg /f /v "Content Type" /t REG_SZ /d image/svg+xml
Then restart VS Code and things should be good.

ReSharper 7 autocomplete incorrectly displays "No suggestions" after typing "this."

I'm using Visual Studio 2010 SP 1 w/ .NET 4.0 and I just upgraded to ReSharper 7. Since upgrading, when I type "this.", Resharper autocomplete always displays "No suggestions" as shown in this screenshot:
If I type ctrl+space at this point, it will come up with suggestions. I can also get suggestions if I hit escape (exit autocomplete) and then delete and re-type the dot. Either way, functioning autocomplete looks like this:
I'd really, really like autocomplete to work automatically as soon as I type "this."; can you help?
I've tried suspending and unsuspending ReSharper, restarting Visual Studio, restarting Visual Studio with ReSharper suspended, and combing the ReSharper autocomplete options. I've tried clearing the ReSharper cache, suspending ReSharper, and then restarting Visual Studio. It doesn't appear to be related to these things in a way that I can see.
I've also tried typing "this." very slowly and the behavior did not change; it doesn't appear to be a race condition. Visual Studio itself auto-completes correctly but using ReSharper autocomplete always has this problem.
Thanks in advance for any advice you can give!
Update: After restarting Visual Studio again, the autocomplete selections did appear correctly once if I typed "this." before VS / ReSharper seemed to fully load (it hiccuped while I typed and when it recovered, the autocomplete was correct). Subsequent attempts reverted to the undesirable behavior.
This is really weird. I've filed an issue with JetBrains here:
http://youtrack.jetbrains.com/issue/RSRP-330185
I'm using the same setup and it works. Your issue can be caused by:
a defective ReSharper installation
additional plugins that interfere with the Resharper IntelliSense
your computer is just a bit to slow and doesn't build the list fast enough
Edit:
I would reinstall resharper (completly remove it - don't repair) and try again.
You may disable ResharperIntellisense or limit it from Resharper->Options->Intellisense->General. I think it is beacause my computer is too slow also or a problem with VS2010.

Intellisense doesn't work for one particular project in VS2010

Thanks in advance.
This problem has killed one whole day of my time.
Intellisense in Visual Studio 2010 works on all projects in my solution except one. It used to work until yesterday and today it just doesn't work particularly for that single project. Can anyone suggest a workaround for this?
Things I tried: deleted the .ncb file, restarted VS 2010, restarted PC, checked in tools->options-texteditor->c# and General settings to enable suggestions. But none of these steps helped me.
regards
Yash
Does the same thing happen on a different pc in the same solution?
If it does, try adding the same files to a new project and see what happens?
I experienced a similar problem after editing some code when running the debugger. What I did was exit debugging mode, restart VS 2010 and Rebuild Solution. Hope it helps
Try to run VS 2010 in safe mode.
If Safe Mode does not help at all, go to Tools > Options..., click Text Editor to collapse, then click All languages. Under Statement completion, make sure you check (tick) them all.
Update: You can also try resetting your VS 2010 settings
I don't know if this will help anyone but I got the problem to resolve by deleting the ncb file AND the suo file. After that (In VS 2008) the Statement completion option as described by eibhrum had one grayed out box (checked) and the Display option had all boxes grayed out (and checked). I checked them all.
I tried checking just the statement options (prior to my deletion of both the ncb and suo files) and that did not work. I never tried checking the display options before during my last two hours of multiple attempts to resolve this issue (I like 'Yash' had one project that did not work; yet resetting that project back to the cpp and h file it had yesterday when it worked did not resolve the problem).
I think (note think) that deleting the suo file is a hard reset your settings option.
In the end I don't understand why the problem arises so its a damn frustrating trial and error. Maybe my approach will help someone out there. Its certainly a very common problem!

Visual Studio 2010 RC Intellisense doesn´t work

I installed VS2010 on my Windows 7 x64...
The patch to fix Intellisense as well (http://connect.microsoft.com/VisualStudio/Downloads/DownloadDetails.aspx?DownloadID=26662)...
But my C# Intellisense doesn´t work... It doesn´t crash, but nothing happens when I typing... Just if I press a Ctrl+Backspace it appears...
In my Javascript file the Intellisense is working fine...
Any idea?
Thanks
EDIT: These are the options that should be enabled:
Tools->Options->Text Editor->C#->General->Auto list members
Tools->Options->Text Editor->C#->General->Parameter information
Tools->Options->Text Editor->C#->Intellisense->Show completion list after a character is typed
See my response to VS2010 RC - Is intellisense broken? How do I turn it on?:
Did you have ReSharper installed with Visual Studio 2008? ReSharper (in VS2008) turns off Intellisense explicitly in order to replace it with their own.
If this is the case, you can turn it back on with the options under Tools->Options->Text Editor->[language] (and sometimes also under the Intellisense node under each language).
For example, for C#, the first checkbox under Tools->Options->Text Editor->C#->Intellisense is "Show completion list after a character is typed". Make sure that is checked.
Scott Gu posted an entry about Intellisence crashing with VS2010 RC1. And later about a patch. This may be causing your problem. If not try Noah's suggestion.

Categories