Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Other Discussions
  3. IT & Infrastructure
  4. [newbie] Visual Studio 2005 tags

[newbie] Visual Studio 2005 tags

Scheduled Pinned Locked Moved IT & Infrastructure
helpcsharpvisual-studiodesigntutorial
5 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    jon 80
    wrote on last edited by
    #1

    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

    C 1 Reply Last reply
    0
    • J jon 80

      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

      C Offline
      C Offline
      ColinM123
      wrote on last edited by
      #2

      Press CTRL+\ then CTRL+T and select comments from the dropdown.

      Online Guitar Tools

      J 1 Reply Last reply
      0
      • C ColinM123

        Press CTRL+\ then CTRL+T and select comments from the dropdown.

        Online Guitar Tools

        J Offline
        J Offline
        jon 80
        wrote on last edited by
        #3

        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

        C 1 Reply Last reply
        0
        • J jon 80

          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

          C Offline
          C Offline
          ColinM123
          wrote on last edited by
          #4

          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)

          Online Guitar Tools

          J 1 Reply Last reply
          0
          • C ColinM123

            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)

            Online Guitar Tools

            J Offline
            J Offline
            jon 80
            wrote on last edited by
            #5

            :) 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

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups