Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Intellisense popup for template code (Visual Studio 2019)

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

like image 245
AlainD Avatar asked Apr 08 '20 15:04

AlainD


People also ask

How do I enable IntelliSense in Visual Studio code?

You can trigger IntelliSense in any editor window by typing Ctrl+Space or by typing a trigger character (such as the dot character (.) in JavaScript).

How do I enable IntelliSense in Visual Studio 2019?

Note: We have several Preview features which are off by default and can be enabled through the Tools > Options > IntelliCode page.

How do I show IntelliSense in Visual Studio?

To access this options page, choose Tools > Options, and then choose Text Editor > C# > IntelliSense.


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.

like image 94
Aplet123 Avatar answered Sep 18 '22 17:09

Aplet123