Skip to content

Commit

Permalink
Rename file name to adequately describe the content (Recent Edits) (#29)
Browse files Browse the repository at this point in the history
  • Loading branch information
sun-flat-yamada authored May 5, 2021
1 parent b0ddfc7 commit db47c3e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,9 @@ namespace JetBrains.ReSharper.Koans.Navigation
//
// Shows a popup menu of recent edits. Shows code blocks, not files
//
// <shortcut id="Recently Changed Files">Ctrl+Shift+, (VS)</shortcut>
//
// <shortcut id="View Recent Edits">Ctrl+Shift+, (ReSharper VisualStudio Keymap)</shortcut>
// <shortcut id="Recent Locations" >Ctrl+Shift+E (Rider Default IntelliJ Keymap)</shortcut>
//

public class RecentEdits
{
Expand All @@ -23,6 +24,8 @@ public RecentEdits(string firstName, string lastName)
private string GetName()
{
// 1. Implement GetName by returning firstName
// Uncomment the following and comment Exception line
// return firstName;
throw new NotImplementedException();
}

Expand All @@ -32,8 +35,14 @@ public void Dump()
// Console.WriteLine("Name: {0}", GetName());

// 3. Return to GetName using Recent Edits and change to be firstName + lastName
// <shortcut id="View Recent Edits">Ctrl+Shift+, (ReSharper VisualStudio Keymap)</shortcut>
// <shortcut id="Recent Locations" >Ctrl+Shift+E (Rider Default IntelliJ Keymap)</shortcut>

// 4. Return back here and uncomment the following
// NOTE: There is no great significance to this implementation.
// It is content to let you experience the feel
// of the navigation controls.
// Console.WriteLine("Done");
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@ namespace JetBrains.ReSharper.Koans.Navigation
{
// 最近編集した場所にに移動する方法を試してみます。
//
//TODO: ReSharperで最近の編集表示機能 (View Recent Edits) が動作しない (ReSharper 2021.1 on VisualStudio2019)
//TODO: rename file name 3.3-Recently_changed_files.cs -> 3.3-Recent_edits.cs
//TODO: ReSharperで最近の編集表示機能 (View Recent Edits) ショートカットキーに割り当たらず動作しない (ReSharper 2021.1 on VisualStudio2019)
//
// 最近の編集箇所と内容をポップアップメニューで表示出来ます。
// ファイルではなくコードブロックが表示出来ます。
//
// <shortcut id="View Recent Edits">Ctrl+Shift+, (ReSharper VisualStudio Keymap)</shortcut>
// <shortcut id="Recent Locations" >Ctrl+Shift+E (Rider Default IntelliJ Keymap)</shortcut>
//
//

public class RecentEdits
{
Expand All @@ -29,7 +28,7 @@ private string GetName()
{
// 1. firstName を返す GetName を実装してください。
// コメントを外して Exception の行はコメントアウトしてください。
// return firstName;
// return firstName;
throw new NotImplementedException();
}

Expand All @@ -47,4 +46,4 @@ public void Dump()
// Console.WriteLine("Done");
}
}
}
}

0 comments on commit db47c3e

Please sign in to comment.