Sunday, September 16, 2012

Bookmark: Working with lengthy codes

Have you ever thought to use bookmarks in Management Studio when working with lengthy codes? If yes, you are smart, but what I have seen is, very low usage of it.

Bookmark allows you to tag code segments with marks and move into them when you want. It can be done with few keystrokes, here is the way of doing it;

  1. Make sure cursor is placed where you want bookmarked.
  2. Press CTRL+k, CTRL+K
  3. You will see the bookmark as below;
    Bookmark
  4. Follow the second step for bookmarking wherever required.
  5. Done!
  6. Use CTRL+K, CTRL+N for jumping to the next bookmark.
  7. Use CTRL+K, CTRL+P for jumping to the previous bookmark.
  8. Use CTRL+k, CTRL+K  for removing bookmarks.
  9. Use CTRL+k, CTRL+L for clearing all bookmarks.

Have fun!