O
O
Oxoron2015-06-30 15:51:36
.NET
Oxoron, 2015-06-30 15:51:36

What is the name (ideally, and how to create it) of your pasted text template in Visual Studio?

Good afternoon.
In the near future, one project will be covered with tests. Accordingly, you will have to create a lot of the same type of code like

[TestMethod]
        public void Constructor_ValidArgs_FieldsHaveToFilled()
        {
            // Arrange

            // Act 

            // Assert
        }

You can, of course, get by with copy-paste, but you want something more convenient, like "poke RMB, select InsertTestClass in the menu".
I know for sure that such a mechanism exists, I read about it a couple of years ago, but I completely forgot the source. Google throws out file templates.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ihor Gevorkyan, 2015-06-30
@Oxoron

it's called "snippets"

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question