I'm using the Bookmarks feature in Visual Studio Professional 2013.
Currently Bookmarks usefully change 'Line Number' automatically if I add/delete lines of code above the Bookmark, so that the Bookmark stays with the intended line of code.
However, I've noticed recently that some Bookmarks have moved from the intended line (Line Number still the same but lines of code added/removed above). This is possibly due to updating files in Source Control Explorer and introducing other peoples changes.
Is there a way to move the Bookmark (change Line Number only) without deleting it and re-adding it?
As the msdn states the bookmarks are set to a line number
"The bookmark is set to the line number, not to the code.If you modify the code, the bookmark is retained at the line number, and does not move with the code"
(see msdn)
If you use Visual Studio to insert or delete line it adjusts the line number for all subsequent bookmarks but that is purely a feature of the editor.
If you update your solution containing bookmarks from SCCS for example the booksmarks stay at exactly the same line number and do not move if the update adds or removes lines.
The bookmarks are stored within binary files with a propritary structure so its difficult to manipulate.
There could be an extension that manages the bookmarks the way you need it.
Alternative proposal:
Maybe the Task List (see MSDN about Task List) could help you. It lists all comments containing user defineable keywords (TODO or HACK by default) and comments move with the code even if you are updating from SCCS.
Instead of adding a bookmark just add a comment in the form // TODO: (your description), open the 'Tasks'-window and select 'Comments' from the combobox to see a list of all comments containing one of the defined keywords.
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