Thread: Visual studio - intellisense - auto completion

  1. #1
    Registered User
    Join Date
    Nov 2006
    Location
    japan
    Posts
    126

    Question Visual studio - intellisense - auto completion

    I wonder if prediction or autocompletition of variable's name is implemented in intellisense...

    What I know is that when you write until the dot(.) or the arrow(->) intellisense will show you the options available. But, is there any key that shows me the variable names even when I have not finished writting them? (not only their properties or methods)

    for example.
    suppose I have
    Code:
    Int aVeryLongNameForMyInt;
    then some where when I type for example "aVeryL" it would be awesome that i could see "ongNameForMyInt" as an option or even better see it autocompleted : "aVeryLongNameForMyInt"
    I hope my explanation was good enough

    Any help would be very appreciated.


    (Sometimes there are too many variables and cannot memorize all of them completely)
    Mac OS 10.6 Snow Leopard : Darwin

  2. #2
    Kernel hacker
    Join Date
    Jul 2007
    Location
    Farncombe, Surrey, England
    Posts
    15,677
    Yes, just press CTRL-SPACE and it will expand whatever you have typed into what it thinks you mean, and it's context sensitive. It doesn't work for EVERYTHING, but most of the time it does.

    --
    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.

  3. #3
    Registered User
    Join Date
    Jul 2004
    Posts
    26
    You should be able to press Alt+Right Arrow to manually invoke intellisense. From there it displays all of the variables, functions, types, ect. within the current scope.
    Last edited by SwiftOutlaw; 06-02-2009 at 01:12 AM.

  4. #4
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Quote Originally Posted by nacho4d View Post
    then some where when I type for example "aVeryL" it would be awesome that i could see "ongNameForMyInt" as an option or even better see it autocompleted : "aVeryLongNameForMyInt"
    I hope my explanation was good enough
    It doesn't do this automatically, though.
    I would try SwiftOutlaw's suggestion.
    Another option for more advanced IntelliSense is Virtual Assist X. It's a plugin and it's damned expensive, but it's very good.
    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.

  5. #5
    Registered User
    Join Date
    Apr 2008
    Posts
    890
    Quote Originally Posted by Elysia View Post
    It doesn't do this automatically, though.
    I would try SwiftOutlaw's suggestion.
    Another option for more advanced IntelliSense is Virtual Assist X. It's a plugin and it's damned expensive, but it's very good.
    You just type "int main()" and it completes the program? :-)

  6. #6
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Code:
    int main()
    {
        std::wcout << L"You have been hax0rred by yours truly, Visual Assist X!\n"
            L"Thank you for purchasing Visual Assist X. We shall now proceed to wipe out your hard drive! Thanks again."
            L"\n\nSincerely, The Visual Assist X Team.";
    }
    How's that for code completion?
    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