Bookmarks: The Visual Studio Code Extension You Didn’t Know You Needed
So I’ve been working as a full stack developer on an application in which the project is handled in a Nx monorepo- a single repository containing multiple distinct, related projects. This monorepo includes a front-end Angular project, a back-end NestJS project, as well as a multitude of Nx libraries where our services, guards, decorators, interceptors, DTOs, enums, interfaces, shared components, and more live…🏠
While building different features within this application, I find myself needing to consistently refer back to certain files. This would be seamless in a small project, but in a monorepo or a mid-large sized project, it can become tedious to repetitively search or manually navigate through directories in your Explorer to locate files when you need them. Sure, you can pin files to your Visual Studio Code editor so that those files remain open. However, that can really pile up and take up valuable mental space.🧠
I recently discovered the “Bookmarks” extension and I NEEDED to share it incase it could help someone else improve their workflow. With this extension, you can bookmark files without keeping them in sight at the top of your editor. 🤯
Download the “Bookmarks” Extension:
- Go to the “Extensions” tab on Visual Studio Code and search for “bookmark”. Select this one named “Bookmarks” by Alessandro Fragnani
2. Install!
3. To add a bookmark in a file, right-click the left margin where you normally would add breakpoints within a file. The bookmark will reference the line you added it on, so this is especially helpful if you want to reference a specific line of code.
4. Select “Add Bookmark”, or “Add Labeled Bookmark” to provide a description
5. To navigate to the bookmark, click on the Bookmarks icon on Visual Studio Code
6. The file and line where you added the bookmark are here! Click to navigate to that line of code.
7. And there you go. You’re welcome!
Thank you to Felipe and Donald Murillo for telling me about this! I hope this helped someone else improve their workflow 😘