Super simple: Use bookmark in Visual Studio

Source: Internet
Author: User

There are some cool shortcut keys for using bookmark in Visual Studio. Many developers I know have never used this function. Write it down. We recommend this small feature.

Bookmark in Visual Studio can be acceleratedCodeNavigation capability. There may be some code that requires frequent switching between them. Generally, you may scroll through the page and find the code block. Visual Studio provides a shortcut to quickly move to a specified code segment. This is the code bookmarks function.

The tool buttons that use this function are located on the menu bar.

You can create bookmarks in three ways: 1. Click the bookmarks icon. 2. Shortcut Keys:CTRLK + ctrl K, 3. Shortcut Key:CTRL B+ Ctrl T. For example,The following code places two bookmarks:

Now, you can easily browse. use Ctrl + k, CTRL + n to the next bookmarks and CTRL + k, CTRL + P to the previous bookmarks, 'N' indicates next, and 'P' indicates previous. Of course, the following toolbar icons can achieve the same effect.

Visual Studio provides the Bookmarks window to get a list of all bookmarks, as shown in. You can find it in the View> other window> Bookmarks window.

Now, you can easily move to the specified code segment by selecting the bookmarks in the bookmarks list.

For ease of use, you can rename the bookmarks, which makes it easier to recognize. You can easily move to a specific code block based on the given name. This is useful when your code contains multiple bookmarks.

Bookmark shortcut key summary:

Create bookmarks:CTRLK + ctrl K.

Navigate to the next bookmarks:CTRLK + ctrl n

Navigate to the previous bookmarks:CTRLK + ctrl P

Unmark the bookmarks, browse to the bookmarks, and then pressCtrlk + ctrlk(Same as creating bookmarks)

Clear all bookmarks:CTRLK + ctrl L

If you want to locate the next bookmarks in the current folder for many files in the current folder, the next bookmarks shortcut under the folder:CTRL shiftK + ctrl shift n, The previous bookmarks:CTRL shiftK + ctrl shift P.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.