Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6206665
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T05:29:22+00:00 2026-05-24T05:29:22+00:00

All, I have a strange issue with Intellisense for C++ projects. Background: I have

  • 0

All,

I have a strange issue with Intellisense for C++ projects. Background: I have recently installed VS2010 Sp1 and had a loss of Intellisense with SQL Server 2008 R2. I tried installing Cumulative Update 7 (CU7) as recommended and this did not work. Reinstalling SQL Server 2008 R2 however, did. I then updated using CU7 for SQL Server 2008 R2 and all was good. Now Intellisense works fine for C# projects but now for C++ projects it is not quite working as it should (NOTE: C++ project is not C++/CLI).

I have disabled Precompiled Header (“Not Using Precompiled Headers”) and have the following includes:

#include <cmath>
#include <complex>
#include <iostream>
#include "stdafx.h"
#include "globals.h"

using namespace std;

NOTE: I am aware that using the std namespace is not always considered best practise, but here it will save me allot of time and there is no chance of ambiguity.

So now when I want a printf statement for example, if I type printf I get not Intellisense prompt. However, if I Ctrl+Space or Ctrl+J Intellisense is recognising the command, and it shows up. Below is the image of Intellisense not automatically working.

enter image description here

Now if I type std::printf, Intellisense appears:

enter image description here

Is there any way to let VS2010/Intellisense know I want to use the std namespace because it appears like it is just not recognising the “#using namespace std;” command.

Thanks very much.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T05:29:23+00:00Added an answer on May 24, 2026 at 5:29 am

    Note: My second answer. Based on a comment by Cory Nelson, so I don’t claim credit.

    If I understand you correctly, you want that Intellisense pops up the moment you type ‘p’.

    The answer is: No, VS2010 won’t do that.

    Intellisense will kick in for “::p” or “std::p”, but not for a plain “p”. This has nothing to do with precompiled headers, nor #include order. It just won’t.

    Some of the IDEs I’ve worked with in the past have a setting to enable/disable completion in this case (I recall seeing so in some C++ Builder version), but I couldn’t find it in VS2010.

    So why would VS2010 not allow it? Keywords could cause problems that are not worth solving, but whether that’s the reason here? I don’t know. Maybe a member of the VS team could shed some light on this.

    Update:

    I tested this program in a new VS2010 project:

    #include <string>
    using namespace std;
    
    int main()
    {
        stri
    }
    

    No popup while typing “stri”.

    “string” appears in the pop-up after ctrl-space, and is absent when I remove the using namespace std; so it correctly reacts to the using.

    After typing ::, Intellisense activates and after ::s suggests SA_AccessType (from the file sourceannotations.h), so the list is clearly prepopulated with many system headers.

    If I type if and force Intellisense to pop-up, there is no if in the list. If I then type the ( as if I wanted to type if(, it corrects to ifstream(. So if Intellisense would always pop-up, it would be much harder to type keywords.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Strange issue. I have SQL Server running on an EC2 box that I can
I have a strange problem with VS2008. My solution has 8 projects (all c#)
I'm working on my first ASP.NET MVC application and have a strange issue. All
We've been experiencing a strange issue with SQL 2008 R2 (10.50.1600) installed as a
I have some strange issue using jQuery Validation plugin. Firs of all here is
I'm using SQL Server 2005 Express, and I'm running into a strange issue. I
I have a strange issue which has been bugging me all day. On the
I have a strange error where my jquery ajax request doesn't submit all the
it is very strange, because this error doesn't happen all the time... I have
I have a bunch of projects in parallel subdirectories that all have etc/lighttpd.conf files.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.