Добавил:
Опубликованный материал нарушает ваши авторские права? Сообщите нам.
Вуз: Предмет: Файл:
strauss_d_getting_started_with_visual_studio_2022_learning_a.pdf
Скачиваний:
123
Добавлен:
26.06.2023
Размер:
17.04 Mб
Скачать

Chapter 2 Working with Visual Studio 2022

These are by no means case sensitive and will appear in your Task List if following the form in Listing 2-24. You can also add your own custom tokens. Let’s see how to do that next.

Adding Custom Tokens

I like the idea of TODO to add items to my Task List, but I would also like to add a custom token to add an entry in my Task List that is a nice-to-have feature. Something that is less restrictive than a TODO, because that implies that this action must be completed.

I do not want to have a bunch of TODO entries for items that are simply nice-to-have features. For this reason, I want to add a custom token called NOTE, simply as a reminder to look at something if and when I have the time.

To add the custom token, go to the Tools menu, and click Options. Under Environment, select Task List as seen in Figure 2-60.

Figure 2-60.  Add custom tokens

In the Name text box, add the word NOTE and set the priority to Low. Then click the Add button. The custom token NOTE is added, as seen in Figure 2-61.

138

Chapter 2 Working with Visual Studio 2022

Figure 2-61.  The custom token added

Adding a NOTE to your code pops up in your Task List as a low-priority task, as seen in Figure 2-62.

Figure 2-62.  Adding a NOTE token comment

139