VB IDE code related question

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • TTCEric
    New Member
    • Jul 2008
    • 26

    VB IDE code related question

    Hello all
    In VB6, there was an option to bookmark a line of code. This made it easy to reference when going to a different part of code.
    But, I dont see it in VB 2005.
    What ive been doing is making syntax errors just to create something like a bookmark, that I can click on when i'm somewhere else in code (click it from the Errors window).
    Aside from that 'hack', is there something where .NET 2005 supports bookmarking?
    Thanks
    Eric
  • Plater
    Recognized Expert Expert
    • Apr 2007
    • 7872

    #2
    In c# if you put in
    [code=c#]
    //todo (anything else here)
    [/code]

    That tasks tab would give a link to each of those lines.

    I would imagine VBNET has it like this
    [code=vb.net]
    'todo (anything else here)
    [/code]

    Comment

    • TTCEric
      New Member
      • Jul 2008
      • 26

      #3
      Originally posted by Plater
      In c# if you put in
      [code=c#]
      //todo (anything else here)
      [/code]

      That tasks tab would give a link to each of those lines.

      I would imagine VBNET has it like this
      [code=vb.net]
      'todo (anything else here)
      [/code]
      Bummer. Its not the same with VB.net. I know if you hit 3 appostrophe's, you get all kinds of help with comments. but nothing like a bookmark.
      Thanks anyway

      Comment

      • Curtis Rutland
        Recognized Expert Specialist
        • Apr 2008
        • 3264

        #4
        Actually, there is a way to bookmark lines in VS. Ctrl-B, T (hold ctrl, then push b then push t) or find the rounded rectangle icon in the "Text Editor" toolbar. Pick a line and click it, or press the shortcut.

        You can press Ctrl-B,N for next, and Ctrl-B,P for previous bookmark. There are also three different kind of buttons to navigate to the bookmarks. Next/Prev, Next/Prev in Document, and Next/Prev in folder.

        Hope you come back and see this.

        Comment

        Working...