C
C#6mo 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
andrew6mo ago
Do you just want it to generate a method with the right signature?
Buddy
Buddy6mo ago
$unitybug
MODiX
MODiX6mo 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
Buddy6mo ago
Have you done that?
hoodooz
hoodooz6mo 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
andrew6mo 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
hoodooz6mo 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
Buddy6mo ago
I suggest using a "real" IDE Such as Visual Studio or JetBrains Rider
hoodooz
hoodooz6mo ago
Is there visual studio for Mac?
Angius
Angius6mo 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
andrew6mo 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.
Want results from more Discord servers?
Add your server
More Posts