alefragnani / vscode-bookmarks

Bookmarks Extension for Visual Studio Code
https://marketplace.visualstudio.com/items?itemName=alefragnani.Bookmarks
GNU General Public License v3.0
1.65k stars 161 forks source link

[FEATURE] - Help tracking linenumber changes after pulling new code #637

Closed diegovdev closed 11 months ago

diegovdev commented 11 months ago

Hi great extension!

After you pull new code changes from colleagues most often the bookmarked linenumber is out of place since the code moved up/down a few lines when new code was added.

The bookmarks remain always in the same line and after a while they are no longer relevant since they are out of place.

Solution:

Let me know your thoughts!

alefragnani commented 11 months ago

Hi @eldiegocvl ,

The extension doesn’t support/monitor external file changes, but edits made inside VS Code so, whenever you open a file, the bookmarks are restored to the previous location (line x column) where it was added inside VS Code.

177 asks something similar to it, even tho I’m inclined not to do anything VCS related but instead, a regular file/content approach.

In the meantime, if you share your project with a team, and they also use VS Code, I would suggest you to try out bookmarks.saveBookmarksInProject setting. It will save the bookmarks within the project (in .vscode/bookmarks.json file) allowing you to add it to your repo and be automatically updated whenever your colleagues make changes

Hope this helps