[newbie] Visual Studio 2005 tags
-
Within code I would like to update a comment with :TODO or :BUG and this is automatically done by the task list. For example,
public class x
{
private static int y;public static int Y { get { return y; } set { y = value; } } //:TODO Fix this bug
}
I believe this was possible with Eclipse. Is this possible with macros or is there some UI option? :confused:
Jon
-
Within code I would like to update a comment with :TODO or :BUG and this is automatically done by the task list. For example,
public class x
{
private static int y;public static int Y { get { return y; } set { y = value; } } //:TODO Fix this bug
}
I believe this was possible with Eclipse. Is this possible with macros or is there some UI option? :confused:
Jon
Press CTRL+\ then CTRL+T and select comments from the dropdown.
-
Press CTRL+\ then CTRL+T and select comments from the dropdown.
After playing around a bit, I tried the following in VS 2008 (at the moment, because VS 2005 is installed within a VM and it doesn't accept shortcut keys): 1. Created a new project 2. Selected Tools > Options. Under Environment selected Task List to view the tags. 3. Added a new tag named 'BUG'. Selected OK to exit. 3. Within the Editor keyed in
//:BUG - this is a new bug
4. Selected Ctrl + \ (waiting for second chord is displayed). 5. Selected Ctrl + T. Nothing happens. I'll try this out in VS 2005 to be sure, but it doesn't seem to work.
Jon
-
After playing around a bit, I tried the following in VS 2008 (at the moment, because VS 2005 is installed within a VM and it doesn't accept shortcut keys): 1. Created a new project 2. Selected Tools > Options. Under Environment selected Task List to view the tags. 3. Added a new tag named 'BUG'. Selected OK to exit. 3. Within the Editor keyed in
//:BUG - this is a new bug
4. Selected Ctrl + \ (waiting for second chord is displayed). 5. Selected Ctrl + T. Nothing happens. I'll try this out in VS 2005 to be sure, but it doesn't seem to work.
Jon
The semicolon should come after the tag
// BUG: - This is a new bug
Then select Task List from the View menu (Looks like it's CTRL+W, CTRL+T)
-
The semicolon should come after the tag
// BUG: - This is a new bug
Then select Task List from the View menu (Looks like it's CTRL+W, CTRL+T)
:) Turns out I had to change the dropdown list at the top to Comments, and it worked fine in VS 2008. Procedure By default the following tags are available: HACK TODO UNDONE UnresolvedMergeConflict I like to add: BUG To use the tags 1.1. Within the code editor, write say: //TODO: Write some code. 1.2. Within the Task list (View > Task List), select comments and the line typed in step 1 is displayed there. When double clicking on the line, navigates to the relevant portion of the code.
Jon