# VSCode Autocompletion for Nakama classes

**URL:** https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115
**Category:** Local Setup
**Tags:** sdk-unity, server-framework, golang
**Created:** [November 21, 2021, 10:28am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115 "2021-11-21T10:28:33Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![TheWolfNL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/thewolfnl/32/873_2.png) [@TheWolfNL](https://forum.heroiclabs.com/u/TheWolfNL)
#### Post date: [November 21, 2021, 10:28am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/1 "2021-11-21T10:28:33Z")

</div>

Hey,

I’m using VS Code and golang, and when i was watching the fish game videos I saw some nice autocompletion and references in action.  
However i don’t get those locally.

Currently my editor doesn’t recognise the Nakama classes like ISocket, IClient, IMatch etc. which makes devving a lot harder than it should be 😅

1. Versions: Nakama 3.9, Mac, Nakama Unity 3.1.1
2. Server Framework Runtime language Go

I initially installed the nakama package through the asset store / package manager, and afterwards updated the package to look for `https://github.com/heroiclabs/nakama-unity.git?path=/Packages/Nakama#v3.2.0`

Can you help me with things to verify, so i (and others) can get that setup as well?

---

<div class="post-metadata">

### Author: ![TheWolfNL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/thewolfnl/32/873_2.png) [@TheWolfNL](https://forum.heroiclabs.com/u/TheWolfNL)
#### Post date: [November 25, 2021, 10:31am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/2 "2021-11-25T10:31:33Z")

</div>

@novabyte @zyro if one of you has some insights regarding this, that would really be appreciated.

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [November 29, 2021, 9:59am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/3 "2021-11-29T09:59:15Z")

</div>

@TheWolfNL We don’t have anything official - I think what was displayed in the video was the memorised auth-complete by the IDE because of previous code examples written by @tom.

This is something that we are looking at solving at some point in the future. @Sean Let’s have a chat about this in the new year together, I think this would provide a massive productivity boost for developers.

---

<div class="post-metadata">

### Author: ![tom](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/tom/32/676_2.png) [@tom](https://forum.heroiclabs.com/u/tom)
#### Post date: [November 29, 2021, 10:51am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/4 "2021-11-29T10:51:39Z")

</div>

Hi @TheWolfNL,

Is it the VSCode / Unity intellisense you’re having trouble with?

If so, this can be a little finicky to get working at the best of times; unfortunately it isn’t something directly related to our SDK and I’ve experienced it myself too.

A couple of suggestions:

- Make sure you have all the appropriate .NET Framework SDKs installed
- Close VSCode and from within Unity choose _Assets → Open C# Project_

If this doesn’t work I would recommend giving another IDE a shot as VSCode’s Unity integration is unfortunately just a bit flaky. I would suggest Rider as this is a tool I’ve been using recently and has worked flawlessly with Unity.

Hope this helps.

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [November 29, 2021, 10:56am UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/5 "2021-11-29T10:56:31Z")

</div>

Ah thanks @tom - I misunderstood the original issue; I was thinking more in the lines of auto-complete for the server runtime functions (that are in JS/Lua).

---

<div class="post-metadata">

### Author: ![TheWolfNL](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/thewolfnl/32/873_2.png) [@TheWolfNL](https://forum.heroiclabs.com/u/TheWolfNL)
#### Post date: [November 29, 2021, 2:26pm UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/6 "2021-11-29T14:26:58Z")

</div>

Hey,  
Thanks @tom and @mofirouz, I discovered yesterday that Github’s Copilot (AI-driven suggestions) was causing some interference here.  
And thanks for making the tutorial videos they help a lot.

So yeah i was indeed talking about the VSCode / Unity intellisense completions.  
Unfortunately i can’t produce an easy list of steps for someone else either as I tried multiple things before turning the Co-pilot off and seeing it worked 😅

I’m working with nakama and custom Go modules for the server, but am just getting started and finding my way around. Since i’m using matches more as a room / server type of way, is there any intention of creating some tutorials to explain such a setup, because then I might be able to assist, after i get it all working that is…

@mofirouz it might be off topic for this question but is there some kind of page that acts as reference for the Go code and when methods are called / which hooks we can use? for example methods like `MatchJoinAttempt` don’t have much documentation or i just overlooked it 😅

---

<div class="post-metadata">

### Author: ![mofirouz](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.heroiclabs.com/mofirouz/32/1523_2.png) [@mofirouz](https://forum.heroiclabs.com/u/mofirouz)
#### Post date: [November 29, 2021, 4:57pm UTC](https://forum.heroiclabs.com/t/vscode-autocompletion-for-nakama-classes/2115/7 "2021-11-29T16:57:21Z")

</div>

We are actively working on revamping the docs to make the discovery better;

In the meantime, have a look at this:

[https://heroiclabs.com/docs/nakama/server-framework/function-reference/](https://heroiclabs.com/docs/nakama/server-framework/function-reference/)

[https://heroiclabs.com/docs/nakama/concepts/server-authoritative-multiplayer/#match-handler-api\_1](https://heroiclabs.com/docs/nakama/concepts/server-authoritative-multiplayer/#match-handler-api_1)
