01-Navigation/3-Navigate_to_somewhere_youve_already_been/3.4-Bookmarks.cs (15 lines of code) (raw):
namespace JetBrains.ReSharper.Koans.Navigation
{
// Bookmarks
//
// TODO: evaluate the shortcuts here
//
// Set, unset and navigate to bookmarks
//
// <shortcut id="Toggle Bookmark with Mnemonic">Ctrl+F11</shortcut> to toggle a numbered bookmark
// <shortcut id="">Ctrl+[0-9]</shortcut> to navigate to a numbered bookmark
// <shortcut id="Show Bookmarks">Ctrl+`</shortcut> to show a popup menu of bookmarks
//
// 1. Navigate to MethodOne (using Go To File Member!) and set bookmark one
// Ctrl+Shift+1 - not the bookmark icon in the editor gutter
//
// 2. Navigate to MethodTwo and MethodThree and set bookmarks two and three
//
// 3. Navigate between bookmark one, two and three
// Ctrl+1, Ctrl+2, Ctrl+3
//
// 4. Remove or reposition any of the bookmarks
// Ctrl+Shift+1, Ctrl+Shift+2, etc
//
// 5. Display the popup menu to navigate between bookmarks
//
// 6. From the popup menu, set an anonymous bookmark. Navigate back to the
// anonymous bookmark from the menu
public class Bookmarks
{
public void MethodOne()
{
}
public void MethodTwo()
{
}
public void MethodThree()
{
}
}
}