Disabling intellisense in literal strings ?

SCRIBE Patrice 41 Reputation points
2022-09-28T09:55:12.26+00:00

Hi,

Seems VS 2022 now triggers intellisense as well in literal strings. Can I disable that ? Thanks in advance.

Developer technologies Visual Studio Other
{count} votes

Accepted answer
  1. Anna Xiu-MSFT 31,056 Reputation points Microsoft External Staff
    2022-09-28T12:53:49.563+00:00

    Hi @SCRIBE Patrice ,

    Welcome to Microsoft Q&A!

    From the document: Use IntelliSense.

    The cursor is in a string literal. You can't use IntelliSense if the cursor is in the quotation marks around a string literal:
    MessageBox( hWnd, "String literal|")

    It shows that the IntelliSense is not supported in string literal.

    If it is in a C++ project, please try to disable IntelliSense by going to Tools > Options > Text Editor > C/C++ > Advanced.

    Sincerely,
    Anna
    *
    If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. SCRIBE Patrice 41 Reputation points
    2022-09-29T08:08:42.433+00:00

    It was in a VB.NET project with which I'm not used to work but I can't repro this right now. My guess is that I had maybe an earlier error causing intellisense to be triggered unexpectedly ?

    0 comments No comments

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.