Easy-to-follow video tutorials help you learn software, creative, and business skills.Become a member
I suspect you keep a list of tasks somewhere in your office. If you want, you can manage some of your tasks from within Visual Studio. I will show you how to do that. I am inside Visual Studio, and I have opened this project called TaskList. There are two files I want to open. I am going to double-click on Samples.cs and then double-click on Program.cs. Next, I want to turn on the TaskList window. If it's not visible on your computer, you need to go to View > Task List. It then lays down here on the bottom of your screen.
Now it has a normal "add my own task" feature. To do that, I go to this dropdown, and I choose User Tasks, and then I click on this Create User Task. You can see I already have one in here. You probably won't have this one on your computer. I'll click here to add a new task, and then type in the word "Demo". And then when I am finished the task, I can click on this check box to say I am done with that. That's not really the task I want to show you. I am more interested in the code comment tasking that's available. Let me show you how that one works. I'll click on this dropdown again, and choose Comments. And then I am going to go up to this line of code here on line 10, and then I want to write an Event Handler.
So I am going to type the word "TODO" on the beginning of this line, like that. And after about a one-second wait, you will see that that shows up on my list. As I continue to add items--I'll go to the Samples file now, and I will put one more in here; I'll put "TODO" on this line-- I should get another item showing up on my list. Now I can use this as a navigation aid, I can double-click on this to do, and it takes me to that section of my code. I've also got a bug in my code. I'd like to be able to put bugs on this list. What I would like to have happen is come over here and type the word "BUG", and have it show up.
Visual Studio doesn't support that out of the box, but I can configure it to accept that keyword, by going to Tools > Options, finding the Environment section, then clicking on this node here, Task List. And then these are the known tokens. There you can see the TODO one. What I am going to do now is type in my own name, BUG, then click the Add button. Also, I can specify a Priority level: Low Priority or High Priority. I think it should be a High Priority and then click OK.
Now you see what happened to my task list on the bottom? It now shows BUG, and has an exclamation point in this first column. Now that you've mastered the task list, let's move on to commenting your code.
Get unlimited access to all courses for just $25/month.Become a member
82 Video lessons · 97106 Viewers
61 Video lessons · 84412 Viewers
71 Video lessons · 68620 Viewers
56 Video lessons · 101108 Viewers
Access exercise files from a button right under the course name.
Search within course videos and transcripts, and jump right to the results.
Remove icons showing you already watched videos if you want to start over.
Make the video wide, narrow, full-screen, or pop the player out of the page into its own window.
Click on text in the transcript to jump to that spot in the video. As the video plays, the relevant spot in the transcript will be highlighted.
Your file was successfully uploaded.