Can I change Intellisense code completion templates?

Ivanich 306 Reputation points
2021-04-14T18:18:47.99+00:00

For example, I define a class implementing some interface, press Ctrl + Dot => Implement Interface, and Intellisense generates following code:

public SomeType PropertyName
{
    get
    {
        throw new NotImplementedException();
    }

    set
    {
        throw new NotImplementedException();
    }
}

This is very annoying because I have to delete almost everything it generates and manually write

public SomeType PropertyName { get; set; }

Surely there are some templates that can be edited to fix this behavior, but I can't find them. I found information about snippets, but they are not related to Intellisense.

Does anybody know where they could be located?

Visual Studio
Visual Studio
A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.
5,445 questions
{count} votes

Accepted answer
  1. Dylan Zhu-MSFT 6,421 Reputation points
    2021-04-15T06:09:47.407+00:00

    Hi Ivanich,

    As far I know, it is included in intellisense feature, and we cannot customize it currently.

    Best Regards, Dylan

    If the answer is helpful, please click "Accept Answer" and upvote it.
    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.**

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most 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.