Can Visual Studio automatically expand text with a piece of code?

In Delphi, if I type "if" and a space, it automatically inserts a piece of code with a specific block of the if statement. I know that in Visual Studio I can insert a fragment, but I need to either right-click, or select “insert snippet”, or press CTRL-K and then CTRL-X.

Is there a way to configure Visual Studio to automatically insert a fragment, like Delphi does?

+3
source share
1 answer

Click tab tab.

+8
source

Source: https://habr.com/ru/post/1699337/


All Articles