Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the best way to bookmark positions in code in Visual Studio 2008/2010?

I find myself going to about five or six main places in my code 80% of the time and would like a way to go to them fast even if all files are closed.

I would like to be able to open up a solution in Visual Studio and without any files open, see a list of self-labeled bookmarks like this:

  • LoadNext
  • Settings page refresh
  • app.config connections
  • app settings
  • stringhelpers top
  • stringhelpers bottom

I click one of these and it opens that file and jumps to that position.

How can I best make bookmarks like this in Visual Studio 2008/2010?

like image 315
Edward Tanguay Avatar asked May 06 '10 11:05

Edward Tanguay


1 Answers

Use task list shortcuts:

  1. On a line in text editor use keys (ctrl + k, ctrl + h) this will add a task list shortcut.
  2. Open task list tool window.
  3. In task list tool window select "short cuts" in the drop-down list.

The task list will the show a list of lines where you made a task list shortcut, whit the text from that line.

like image 102
Jens Granlund Avatar answered Oct 10 '22 09:10

Jens Granlund