Usual comment above the line of code in C++ VS 2019 / Exclude comment from intellisense quick info

Dima K 1 Reputation point
2021-10-13T09:22:09.147+00:00

Is there any way to make the comment line above the line of code being not included into Intellisense and not appear as quick info?
The tutorial I'm watching (it uses VS 2017) says its "//" for documenting, "///" for usual commenting. As for my VS 2019 testing "//" and "///" both trigger intellisense. Couldn't find the customization settings for that..

UPD2: I posted at VS Developer Community as @PengGe-MSFT suggested. Vote here if you want to make it a feature.

UPD: so it actually works in VS 2015. But what about VS 2019 and 2022 ? :)
140416-vs2015-commenting.png

Developer technologies | C++
Developer technologies | Visual Studio | Other
{count} votes

2 answers

Sort by: Most helpful
  1. RLWA32 49,551 Reputation points
    2021-10-13T09:51:44.743+00:00

    If you include a blank line between the comment and the related code then the comment will not be included with the IntelliSense Quick Info.

    For example -

    With blank line -
    140221-with.png

    Without blank line -
    140213-without.png

    1 person found this answer helpful.

  2. RLWA32 49,551 Reputation points
    2021-10-13T17:55:41.5+00:00

    I dusted off some old stuff and fired up copies of VS2015 and VS2017. And yes, in these older versions of VS the /// comment in C++ source code was not shown in IntelliSense Quick Info . However, apparently this is no longer the case in VS2019.

    1 person found this answer helpful.

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.