Intellisense not working for my variables
-
Friday, August 22, 2008 5:07 PM
Hi,
I'm normally a VB programmer but am assigned to a C# project. I'm having issues with the intellisense not showing up on my declared variables. For example, if I do the following:
DataSet ds = new Dataset();
Then, if I type ds., no list comes up with a list of commands. Since I'm kind of new to C# and it's IDE, I thought this might just be how it is but I asked some of my coworkers and a list is supposed to come up. If I type String., a list comes up of commands. It only seems to not work on my own variables.
I checked Tools > Options > Text Editor > C# > Intellisense and everything seems to be okay.
Please help!
TIA,
Matt
There is indeed a harmony to the universe.
All Replies
-
Friday, August 22, 2008 9:51 PMHi Matt,
Did you have the "using System.Data;" statement at top? Does this also happen when you declare an integer variable then try to access intellisense using '.'? Can you past your code? Or a screenshot would be great too.
Thanks,
Jeremy -
Sunday, August 24, 2008 4:59 PM
Here is one thing to try:
Close visual studio.
Delete the hidden .sou file for the solution.
Restart visual studio .
/Ruben RJJournal- Marked As Answer by Michael Sun [MSFT]Microsoft Employee, Moderator Wednesday, August 27, 2008 3:29 AM
-
Tuesday, August 26, 2008 2:16 PMmaxruben said:
Here is one thing to try:
Close visual studio.
Delete the hidden .sou file for the solution.
Restart visual studio .
/Ruben RJJournal
hi, Maxruben
Could you explain the function about the *.suo file? -
Tuesday, August 26, 2008 5:57 PM
The .suo file is the Solution User Option file that visual studio uses to keep track of settings and states such as breakpoints, watch window variables, window layout and so on. Sometimes this can get corrupt and it has been known to mess up with intellisense. The only way to fix it is to delete the .suo file and let visual studio rebuild it.
/Ruben RJJournal- Proposed As Answer by Andy bu Tuesday, August 26, 2008 11:52 PM
- Marked As Answer by Michael Sun [MSFT]Microsoft Employee, Moderator Wednesday, August 27, 2008 3:29 AM
-
Tuesday, August 26, 2008 11:54 PMThanks for your clarification!!
that is the reason why my vs settings are always to be changed when I update codes from server.
It confused for a lot time.
-
Sunday, September 16, 2012 1:16 PM
thanks jeremy ......its only because of ... using System.Data......!!!!
now intellisense Showing Dataset And Datatable Classes

