Bookmark Lines of Code in SQL Server Management Studio Query Editor Window

To navigate easier through many lines of code in SQL Server Management Studio (SSMS) Query Editor Window, it can be useful to bookmark some lines to which you would like to return to.

To set or remove a bookmark at the current line, press 'CTRL+K' followed by another 'CTRL+K'. A small blue square will appear left of the bookmarked line:


To move to the next bookmarked line of code from the current cursor location press 'CTRL+K' followed by CTRL+N, to move to the previous bookmarked line of code press 'CTRL+K' followed by 'CTRL+P'.

To clear all bookmarks press 'CTRL+K' followed by 'CTRL+L'.

By pressing 'CTRL+K' followed by 'CTRL+W', you can open a Bookmarks window:


You can move the cursor to the bookmarked line by double clicking on the bookmark in the Bookmark Window.
There is an option to rename bookmarks in the Bookmark Window.