0

I am using VScode to write scripts in C# for unity. It really annoys me that Intellisense suggests based on some random algorithm when it would be much better to suggest based on value types.

In the example below you can see that I am trying to write isSpawned = true, but it suggests me a transform which is silly because isSpawned is a bool and that suggestion will make an error. Vscode exaple image

Is there a way to fix that behaviour?

Einxeld
  • 1
  • 1
  • it offers `transform` because there is an implicit conversion to [`bool`](https://docs.unity3d.com/ScriptReference/Object-operator_Object.html) .. – derHugo Sep 27 '22 at 14:29
  • @derHugo, thanks a lot for info! So I guess it's impossible to fix this, because VSCode does what it was programmed to do – Einxeld Sep 29 '22 at 08:49

1 Answers1

0

it offers you 'true' below transform I don't think it's possible to fix that but you can add an extension like tabnine.

edouaz
  • 26
  • 2
  • I know it suggests true in the next option, but it really messes up with workflow. – Einxeld Sep 26 '22 at 21:44
  • Thanks for the Tabnine, I tried it now and unfortunately it was not for me. Tabnine is wway too intrusive, it tries to be everywhere and breaks the flow even more with strange suggestions. – Einxeld Sep 26 '22 at 21:46