Intellisense popup for template code (Visual Studio 2019)

Viewed 4418

When you define a template, VS 2019 shows a floating pop with the text <T> Provide sample template arguments for Intellisense. You can supply a template type like int, but is there a way to get this floating box to disappear without turning Intellisense off completely?

Example:

template <typename T> // popup box appears here after a few seconds, see image
struct POINT {
    T x, y;
}

Example showing the popup box

1 Answers

This is Visual Studio's template intellisense. If you want its features, then you should click the pencil icon on the right side of the dialog, and provide a sample type for the template. If you don't want the template intellisense features, then you can turn it off in Tools > Options > Text Editor > C/C++ > Advanced > IntelliSense > Enable Template IntelliSense.

Related