Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the light blue rectangle positioned in same column as the breakpoints in the Visual Studio interface?

I accidentally pressed some keys in Visual Studio 2010 and ended up with an icon I never saw before placed where the breakpoints are usually placed:

Anyone can tell me what it does and how can I remove it?

like image 348
Răzvan Flavius Panda Avatar asked Sep 01 '11 13:09

Răzvan Flavius Panda


People also ask

How to view breakpoints in Visual Studio?

Visual Studio's/Atmel Studio's Breakpoint Window gives you an overview of all breakpoints you have set in your project. You open the Breakpoint Window with the menu item Debug > Windows > Breakpoints or by pressing [Alt+F9].

How to add break point in Visual Studio?

To set a breakpoint in source code: Click in the far left margin next to a line of code. You can also select the line and press F9, select Debug > Toggle Breakpoint, or right-click and select Breakpoint > Insert breakpoint. The breakpoint appears as a red dot in the left margin.

How do I view code in Visual Studio?

You can open code into Visual Studio in the following ways: On the Visual Studio menu bar, choose File > Open > Folder, and then browse to the code location. On the context (right-click) menu of a folder containing code, choose the Open in Visual Studio command.


1 Answers

Those are bookmarks.

More info here:

http://msdn.microsoft.com/en-us/library/xc3ed5eh.aspx

and here:

http://msmvps.com/blogs/vipul/archive/2006/01/20/Visual-Studio-Bookmarks.aspx

Excerpt from the documentation:

The Bookmarks window is a handy companion tool to the Code Editor. You can mark lines in your code files with bookmarks and then organize these bookmarks into virtual folders. This enables you to open files and navigate directly to the lines marked simply by clicking entries in the Bookmarks window.

Common procedures for using bookmarks appear below.

In most Visual Studio programming languages, you can also create Task List shortcuts and comments. As with bookmarks, you can click on any entry in the Task List to open a file and jump to the line of code marked. For more information, see How to: Use Task List Shortcuts and How to: Create Task List Comments.

To create or remove a bookmark using the Bookmarks window

  1. Open a source code file for editing in the Code Editor.

  2. Place the insertion point on the line of code you want to bookmark.

  3. On the View menu, select Bookmark Window.

    The Bookmarks window is displayed. It can be docked along any convenient edge of the IDE. The list of bookmark entries includes an entry for the newly bookmarked line in the active document.

  4. Click the Toggle a bookmark button in the Bookmarks window.

    A bookmark token appears in the Indicator margin of the Code Editor next to the selected line. Click the button again to remove the bookmark.

like image 181
David Avatar answered Nov 15 '22 15:11

David