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?
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With