skip to Main Content

When I begin to write type Visual Studio IDE and VSCode show not only the C# types but .Net types also (i.e: int – Int16, byte – Byte):

enter image description here

Is it possible to hide .Net type intelliSense?

2

Answers


  1. Maybe this answer could help you: How to force visual studio to generate properties using lower case type (i.g., string instead of String)

    But it’s just an Alias:

    In the preceding tables, each C# type keyword from the left column (except dynamic) is an alias for the corresponding .NET type. They are interchangeable.

    (source: https://learn.microsoft.com/en-us/dotnet/csharp/language-reference/builtin-types/built-in-types)

    Login or Signup to reply.
  2. The IntelliSense completion lists in C# contain tokens from List Members, Complete Word, and more.
    https://learn.microsoft.com/en-us/visualstudio/ide/visual-csharp-intellisense?view=vs-2022#filtered-completion-lists

    In the C# section of the visual studio IDE, I didn’t find any changes to the
    IntelliSense to hide one of the configurations. If you want to hide the .Net type, you can only hide IntelliSense.

    Effect:
    enter image description here

    enter image description here

    You can also choose not to show the structure when writing the type, but you need to select it manually after writing.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search