Recently, when microsoft launched Visual Studio 2010, they launched it with the very nice Campaign “Life runs on code”.Who all have seen the any advertisement of VS 2010, must have seen this also. It’s very true, we, developer’s life runs on code, and our code runs on Visual Studio IDE ( Obviously only on development phase 🙂 ).
As most of the time in our offices and home (only for workaholics 🙂 we spent most of the time with visual studio IDE, we always try to find some way to code faster/better, to increase the productivity.
Visual studio IDE is full of myriad features, that helps us for faster and smoother coding. We most of the time are not aware of this and don’t use these.I always try to find some good feature at Visual studio, which we can use in our daily life and share with you all.
In this post, I am going to discuss a window, that is called as Task List window, some of you might aware this so this for rest developers 🙂
So what is the Task window, how it can help us. Let’s go in bit detail
As we have other window, Error/Warning window, we also have Task list window.To see this window, Go To View->Task List or directly using the keys Ctrl+W, T. This task list window show us the TODO list that we track and other annotations. Task list window has two views : User Task Window and Comments Window. We’ll discuss first comments Window.
Generally, we write some TODO or UNDONE comments, while development phase of our application. These comments are a sign, that we need to update/Change the code before releasing to QA/Staging environment.
As in my sample project, I have added few comments multiple files. These are listed in the Task List window (Comment View). One can all the these type of of comments in this window from the entire project. And one can click one by one and make changes whenever required. Let’s see the comments…
We can click on any of it and it will take us to directly that line of code.
HACK, TODO, UNDONE, UnresolvedMergeConflict are default comment Tokens in VS IDE. But one can add custom tag based on their requirements.Go to Tools-> Options then under Environment click task list as below ( If Task list is not visible make sure “Show all settings” checkbox is checked at bottom of Options window).
To add a Custom Token, write the Token at Name input box, set the priority and then click on add button.We can also remove/change the existing token with the given buttons.
Now lets move to User Task View, this view list down all the user created tasks. One can create user tasks by clicking Create User Task icon, just beside view dropdown. Let’s see it
This gives you option to write the description of the task and set the priority. Once the task get completed, then one can mark it as completed by checking the checkbox.
Note: I have VS2008 for this post.
That’s all for now!!!
Large addict on this page, quite a few your posts have definitely helped me out. Looking towards posts!
Can you filter the comments, so let’s say, if you added your own you want to see only those?? It seems that the window displays all the comments in the project. Or if you know of an add in that does this. Thanks.
AFIK,there is no such filter in VS2008 but some 3-party extension might provide this functionality. I have not explored any 3-party extension yet 😦
One way, you might remove the tags that you don’t want. It’ll show only the available ones. You can also set the priority of the Tags, that also might suffice you problem a bit.
Thanks Mina!! Glad that my posts helped you