Visual studio code auto-complete

后端 未结 9 2277
遥遥无期
遥遥无期 2021-02-13 03:30

I have just downloaded unity and saw that now it supports Visual studio code, I downloaded it and made it the default editor.

After trying to edit a script, it prompted

相关标签:
9条回答
  • 2021-02-13 03:37

    I had the same problem with Unity + VS Code combo.

    I have found an extension called Unity CodeSnippets

    I highly recommend to download it. This is much better than any of other snippets collection for VSCode.

    0 讨论(0)
  • 2021-02-13 03:41

    You can use the unity integration plugin:

    https://code.visualstudio.com/Docs/runtimes/unity

    Follow the instructions to get set up. It seems a lot of things to do but I think that's the best one.

    If you still hit the issue even by using that plugin then follow this issue at their github page.

    0 讨论(0)
  • 2021-02-13 03:41

    I installed an older version of c# vscode extension, version 1.16.21, and it is working.

    0 讨论(0)
  • 2021-02-13 03:45

    Maybe too late, but for future comers ...

    There is an extension now for visual studio code called MonoBehaviour Snippets by Rachod Petchpho.

    Press Ctrl+shift+x in the IDE to open extensions panel then search for MonoBehaviour Snippets, install and reload the IDE, now you will find all the autocomplete for the function names and objects just like MonoDevelop.

    0 讨论(0)
  • 2021-02-13 03:46

    I had the same situation and I bang my head to the wall for days. There was no solution on the net as there are few people using Unity on linux with Visual Studio Code. I finally removed mono and went to their site and downloaded the Visual Studio build (even though we use Visual Studio Code). Then volaaa. Auto complete and suggestions related to Unity functions were there. Of course after installing the necessary extensions.

    https://www.mono-project.com/download/vs/

    0 讨论(0)
  • 2021-02-13 03:52

    https://forum.unity.com/threads/cant-get-vscode-to-work-properly-with-unity.538224/

    there are people that found a workaround. unityoracle user said: "This issue is that Unity Editor expects the file used to launch VSCode to have a specific name. " and: "Specifically, creating a symlink named "code" that opens VSCode fixed this issue"

    0 讨论(0)
提交回复
热议问题