Unity Developing Environment with VSCode

  1. Install Unity (2022 LTS) and VSCode.
  2. Setup .Net Environment
    1. install Mono from stable channel
    2. install SDK
  3. Change Unity Settings
    1. Create a unity project
    2. Set VSCode as default editor. Settings->External Tools->External Script Editor. Set it to Visual Studio Code.
  4. Asset->Open C# Project. To open project in VSCode.
  5. VSCode Pulgins:
    1. C#: setup C# environment
    2. Unity Code Snippets: auto code completion
    3. Unity Snippets
    4. Unity Tools
    5. C# XML Documentation Comments: generate comments and documents
  6. VSCode Setting
    1. Turn off omnisharp.usemodernnet
    2. Set omnisharp.monopath
    3. (optional) Turn off telemetry (it sends analytics to Microsoft)
  7. Restart VSCode.