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.