Intellisense not working for my variables

Locked Intellisense not working for my variables

  • Friday, August 22, 2008 5:07 PM
     
      Has Code
    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 PM
     
     
    Hi 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
     
     Answered
    Here is one thing to try:

    Close visual studio.
    Delete the hidden .sou file for the solution.
    Restart visual studio .


    /Ruben RJJournal
  • Tuesday, August 26, 2008 2:16 PM
     
     
    maxruben 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
     
     Answered
    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
  • Tuesday, August 26, 2008 11:54 PM
     
     
    Thanks 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