C
C#13mo ago
hoodooz

VSCode and intellisense for events

hey guys, I'm using VSCode for Unity programming on OSX. Everything works great, but one thing, which is really annoying. I can't make damn event listeners intellisense work. It won't generate function when I listen to event no matter what. Anybody ever faced anything like that?
11 Replies
andrew
andrew13mo ago
Do you just want it to generate a method with the right signature?
Buddy
Buddy13mo ago
$unitybug
MODiX
MODiX13mo ago
If intellisense is not working for Rider / Visual Studio, follow these steps.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Go into Unity Editor -> Preferences -> External Tools -> Set Visual Studio (or JetBrains Rider) as your preferred editor.
Close the editor and re-open it again by double-clicking a script file.
Buddy
Buddy13mo ago
Have you done that?
hoodooz
hoodoozOP13mo ago
Not yet, but I will try. All intellisense works perfectly, only method generation for event handler doesn’t I don’t even have idea how to debug it. Maybe some clues on that one?
andrew
andrew13mo ago
It's never worked for me with the += autocomplete like in VS. You can still name it and cmd+. to add the missing method with the right signature.
hoodooz
hoodoozOP13mo ago
Yeah. Would be great to fix that 😀 shouldn’t be hard really But I have hard times figuring out what to fix 😄 where this intellisense logic is? Any clues folk?
Buddy
Buddy13mo ago
I suggest using a "real" IDE Such as Visual Studio or JetBrains Rider
hoodooz
hoodoozOP13mo ago
Is there visual studio for Mac?
Angius
Angius13mo ago
There is, yes Not for long though Since it's getting discontinued So your best option is JetBrains Rider, and your free option is VS Code + DevKit extension
andrew
andrew13mo ago
GitHub
GitHub - dotnet/vscode-csharp: Official C# support for Visual Studi...
Official C# support for Visual Studio Code. Contribute to dotnet/vscode-csharp development by creating an account on GitHub.

Did you find this page helpful?