R
R
Reikoni2021-03-20 17:08:22
Unity
Reikoni, 2021-03-20 17:08:22

How to make vscode complete code for Unity?

Hello!
Recently I wanted to make games. I must say right away that I have Manjaro KDE Plasma 5 (Linux).
At first I made them in Godot Engine, but I didn’t like it, so I downloaded Unity and vscode, respectively.
Installed extensions in vscode: C#, Tools for Unity, Debugger Unity, Unity Snippets.
In unity itself, I went into the settings and connected vscode as a code editor.
But when I want to create a new c# script, I double-click on it, vscode opens;
I immediately see that the word MonoBehaviour is an unknown word, but when I want to write any word, for example, transform, it does not complement it (for example, I write trans, it should give me a small menu with matches, but no! who understood , he understood), and if I write the name of the method (Awake (), Update () and others), then it complements it (as I later realized that this is due to the above extensions).
I want vscode to complement words, data types and TD (I'm talking about transform, GameObject, public, private and TD)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vasily Bannikov, 2021-03-20
@vabka

You also need a C# add-on.
But I recommend taking Rider - it has many more functions for the unit and everything is set up at once.
For students and schoolchildren for free. You can also get a free license on stepik

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question