C
C#14mo 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
andrew14mo ago
Do you just want it to generate a method with the right signature?
Buddy
Buddy14mo ago
$unitybug
MODiX
MODiX14mo 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
Buddy14mo ago
Have you done that?
hoodooz
hoodoozOP14mo 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
andrew14mo 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
hoodoozOP14mo 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
Buddy14mo ago
I suggest using a "real" IDE Such as Visual Studio or JetBrains Rider
hoodooz
hoodoozOP14mo ago
Is there visual studio for Mac?
Angius
Angius14mo 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
andrew14mo 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?