Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how can i make a bookmark with a name in visual studio 2010

when making a bookmark in VS 2010 it is given some default name "Bookmark#". and then later i have to rename it. what i want is to select a text and when i make a new bookmark this bookmark's name will be the text i have selected.

how?

like image 415
shemesh Avatar asked Mar 29 '11 08:03

shemesh


2 Answers

If you already have the Bookmark Window open, you can right-click on the bookmark and select Rename. Then, just start typing, and your bookmark will be renamed.

If you need to open the Bookmark Window, you can use the default command Ctrl+W, B, or you can go to View -> Other Windows -> Bookmark Window.

Edit: In VS 2015, the Bookmark Windows command is Ctrl+K, Ctrl+W.

like image 87
Rachel Martin Avatar answered Sep 29 '22 22:09

Rachel Martin


You can try using code shortcuts rather than bookmarks. If you add a comment, eg:

// place in my code I want to come back to

Then with the cursor on this line press Ctrl+K then Ctrl+h it will add a code shortcut, you'll notice the shortcut icon in the margin.

Next, press Ctrl+\+T to bring up the task list, and select Shortcuts from the dropdown. The description text will be whatever the contents of the line are where you added the shortcut, in this case the comment text. If you just add a shortcut on a line of code, the description will be the contents of that line of code.

Double click on a shortcut to go to that location in the code.

like image 25
ilikeprogramming Avatar answered Sep 29 '22 22:09

ilikeprogramming