- Home /
Peek Definition not working in Visual Studio Code for C# tokens
I'm a Beginner to game development and C# and I Recently managed to solve the .NET CLI tools issue in VS Code now the peek definition and go to definition doesn't work for C# tokens (like void, override etc.) though it works for unity functions,variables and classes. how can i solve this?
Answer by Bunny83 · Dec 11, 2018 at 08:12 AM
I'm not sure what you mean. Do you literally mean the word "void" and "override"? Those do not have any definition that you could lookup as they are not identifiers which are defined somewhere but are keywords of the language itself. Or do you mean you try to lookup a certain method? So either the answer is simply: No or you have to be more clear about what you want to do.
Yes, I meant keywords of c# like void and override. I asked this because I used to get it's meaning like for void it used to say "to specify the function doesn't return a value" and now it doesn't show. I'm a beginner so this peek definition is helpful to me to check what the keyword does. It works fine for unity's identifiers and classes like animator, Start() etc. So that's my problem though it may sound silly.
And I'm terribly sorry to word the question wrongly, how silly of me. Well peek definition is for identifiers and I used the same term for keywords. When we hover the mouse over the keyword it shows the meaning of what it does like I mentioned In the earlier comment.