Click here to Skip to main content
Licence CPOL
First Posted 10 Oct 2009
Views 15,563
Bookmarked 15 times

Using Bookmark in Visual Studio

By Abhijit Jana | 10 Oct 2009 | Technical Blog
Speedup code navigation using Bookmarking in Visual Studio

1

2

3

4
4 votes, 100.0%
5
5.00/5 - 4 votes
μ 5.00, σa 1.10 [?]
A Technical Blog article. View original blog here.[^]

Introduction

As the name suggests, bookmarking speedup your code navigation in Visual Studio. There may be some portion of code where we need to move very frequently. Generally we scroll the page and move to that section, but Visual studio provides great features by which we can move to a particular section very quickly using some shortcut keys. This is called Bookmarking of Code.
Below are the set of Icons which are used to navigate the code using Bookmark.

BookMark1

How To Use

We can place the bookmark by clicking on Bookmark icon or using keys Ctrl + K, Ctrl + K. Below is the sample code where I have put two bookmarks in different sections of code.

BookMark2

Now we can easily navigate among those breakpoints using Ctrl + K, Ctrl + N for Next Bookmark and Ctrl + K , Ctrl + p for Previous mark. We can achieve the same using the following toolbar icon.

BookMark3

This is very much easy to use and it gives you very fast navigation throughout the code.

Using Bookmark Window

Visual Studio provides you a Bookmark window where you can get a list of all bookmarked sections.

BookMark4

Now, by selecting a particular bookmark from the Bookmarks list, we can easily move to the particular section.

BookMark5

Renaming BookMarks

For easy reference, we can also rename bookmark so that we can easily identify them. This helps us to easily move to a particular code block based on the name given. This is useful when we are having many bookmarks in the bookmark list.

BookMark6

As I have renamed my bookmark list as below:

BookMark7

Summary

This may not be new to many of us, but it may helpful for some beginners. Using this feature, we can navigate our code very easily. Please provide your valuable suggestions and feedback.

Posted in General

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

About the Author

Abhijit Jana

Software Developer (Senior)

India India

Member

Follow on Twitter Follow on Twitter
.NET Consultant | Former Microsoft MVP - ASP.NET | CodeProject MVP, Mentor, Insiders| Technology Evangelist | Author | Speaker | Geek | Blogger | Husband
 
Blog : http://abhijitjana.net
Web Site : http://dailydotnettips.com
Twitter@AbhijitJana

Sign Up to vote   Poor Excellent
Add a reason or comment to your vote: x
Votes of 3 or less require a comment

Comments and Discussions

 
You must Sign In to use this message board. (secure sign-in)
 
Search this forum  
 FAQ
    Noise  Layout  Per page   
  Refresh
GeneralIn Addition/Alternative to this bookmark PinmemberDilip Jaju (DJ)21:06 16 Mar '10  
GeneralIt's helpful! And I am looking foward to more articals about how to use the VS more efficient. Thanks PinmemberSeshaal15:52 13 Oct '09  
GeneralRe: It's helpful! And I am looking foward to more articals about how to use the VS more efficient. Thanks PinmvpAbhijit Jana19:02 13 Oct '09  
GeneralRe: It's helpful! And I am looking foward to more articals about how to use the VS more efficient. Thanks PinmemberSeshaal18:21 15 Oct '09  
GeneralRe: It's helpful! And I am looking foward to more articals about how to use the VS more efficient. Thanks PinmvpAbhijit Jana7:31 7 Nov '09  

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Mobile
Web03 | 2.5.120209.1 | Last Updated 10 Oct 2009
Article Copyright 2009 by Abhijit Jana
Everything else Copyright © CodeProject, 1999-2012
Terms of Use
Layout: fixed | fluid