I am facing a situation with Visual Studio for Mac 2019, wherein I am not able to go to definition for lambda expressions like .where
or .ToList
. It just opens the Assembly Browser. However for C# classes, it does navigate to the definition like for Console
, Join
, etc.
My keybindings in Visual Studio look like as attached. Also when I try to edit them to just ⌘D it shows unreadable content.
Example code:
List<Warrior> warriors = new List<Warrior>()
{
new Warrior() { Height = 100 },
new Warrior() { Height = 80 },
new Warrior() { Height = 100 },
new Warrior() { Height = 70 },
};
List<int> heights = warriors.Where(wh => wh.Height == 100)
.Select(wh => wh.Height)
.ToList();
internal class Warrior
{
public int Height { get; set; }
}