Getting Started with Visual Studio 2022 by Dirk Strauss

Getting Started with Visual Studio 2022 by Dirk Strauss

Author:Dirk Strauss
Language: eng
Format: epub
ISBN: 9781484289228
Publisher: Apress


Figure 2-58The Task List

In some ways, I prefer the Task List more than bookmarks because I can quickly add items to revisit by adding //TODO: in my code. With your Task List open, go to any place in your code, and add the comment in Listing 2-24.// TODO: Remember to do something here

Listing 2-24TODO Comment

Now have a look at your Task List. You will notice that the TODO comment has been added to your Task List, as seen in Figure 2-59.

Figure 2-59TODO comments in the Task List

This is a nice and quick method for adding reminders to your code so that you can easily refer to them and navigate to them by double-clicking the item in the Task List. You can, therefore, use the Task List to take you directly to the predefined location in the code.

In Visual Studio, TODO is what we call a predefined token. Therefore, a comment in your code that uses a predefined token will appear in your Task List. The tokenized comment is made up of the following:The comment marker, which is //



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.