Thread: Visual Studio IntelliSense

  1. #1
    Registered User
    Join Date
    Feb 2009
    Location
    Seattle
    Posts
    39

    Visual Studio IntelliSense

    Noob here. Does anyone know of a way (plug-in perhaps) to get IntelliSense to work in Visual Studio 200+ when writing C code? Xcode has auto completion for C. Why not VS? Where is the love Billy boy? I would just switch to another compiler but my instructor grades our homework in VS and the last thing I need to worry about at this point is compiler configuration bugs.

  2. #2
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by MSF1981 View Post
    Noob here. Does anyone know of a way (plug-in perhaps) to get IntelliSense to work in Visual Studio 200+ when writing C code? Xcode has auto completion for C. Why not VS? Where is the love Billy boy? I would just switch to another compiler but my instructor grades our homework in VS and the last thing I need to worry about at this point is compiler configuration bugs.
    To get IntelliSense, you need to create a project. If you're just editing a raw source file, you don't get it.

    Make a dummy project, throw your source/headers into it, and you'll get IntelliSense.
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  3. #3
    Registered User
    Join Date
    Feb 2009
    Location
    Seattle
    Posts
    39
    Quote Originally Posted by brewbuck View Post
    To get IntelliSense, you need to create a project. If you're just editing a raw source file, you don't get it.

    Make a dummy project, throw your source/headers into it, and you'll get IntelliSense.
    Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense work when I'm accessing a structure member with the dot notation.

  4. #4
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by MSF1981 View Post
    Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense work when I'm accessing a structure member with the dot notation.
    The reason IntelliSense is not automatically activated for editing single source files is that it produces an index file, and these index files would litter all over the place.

    How hard is it to just create an empty project and add your source files to it?
    Code:
    //try
    //{
    	if (a) do { f( b); } while(1);
    	else   do { f(!b); } while(1);
    //}

  5. #5
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Quote Originally Posted by MSF1981 View Post
    Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense work when I'm accessing a structure member with the dot notation.
    IntelliSense works just fine on anything else - just press CTRL-Space whenever you have typed a small part of a symbol, and it will give you a list to chose from (unless it's complete enough to be unique).

    --
    Mats
    Compilers can produce warnings - make the compiler programmers happy: Use them!
    Please don't PM me for help - and no, I don't do help over instant messengers.

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by MSF1981 View Post
    Wow, autocompletion in Xcode is way better than IntelliSense then. Autocompletion kicks on in Xcode when prototypes and variables are declared. Unlike in VS. So far I have only seen IntelliSense work when I'm accessing a structure member with the dot notation.
    That's not right.
    IntelliSense kicks in whenever calling a function, accessing a struct, etc.
    Although it is not THE best for C/C++ (it's far better for C# & Co, screw you Microsoft!), but fortunately there are tools that makes it better. Unfortunately, these tools are not free and expensive.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. more then 100errors in header
    By hallo007 in forum Windows Programming
    Replies: 20
    Last Post: 05-13-2007, 08:26 AM
  2. We Got _DEBUG Errors
    By Tonto in forum Windows Programming
    Replies: 5
    Last Post: 12-22-2006, 05:45 PM
  3. C++ std routines
    By siavoshkc in forum C++ Programming
    Replies: 33
    Last Post: 07-28-2006, 12:13 AM
  4. load gif into program
    By willc0de4food in forum Windows Programming
    Replies: 14
    Last Post: 01-11-2006, 10:43 AM
  5. Learning OpenGL
    By HQSneaker in forum C++ Programming
    Replies: 7
    Last Post: 08-06-2004, 08:57 AM

Tags for this Thread