Start learning with our library of video tutorials taught by experts. Get started
Viewers: in countries Watching now:
In Visual Studio 2010 Essential Training, author Walt Ritscher demonstrates how to use Visual Studio 2010 Professional to develop full-featured applications targeting a variety of platforms. Starting with an overview of the integrated developer environment, the course covers working with code editors, navigating and formatting code, and deploying applications. Also included are tutorials on running performance and load tests, and debugging code. Exercise files accompany the course.
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.
Find answers to the most frequently asked questions about Visual Studio 2010 Essential Training.
Here are the FAQs that matched your search "":
Sorry, there are no matches for your search ""—to search again, type in another word or phrase and click search.
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.