Home  >  Article  >  Edit your Unity project in Visual Studio Code and you are now ready to go

Edit your Unity project in Visual Studio Code and you are now ready to go

WBOY
WBOYforward
2023-08-08 10:21:071616browse

Microsoft has released a preview version of the Unity extension for Visual Studio Code. This new Unity extension will allow you to write and debug Unity games. This new Unity extension brings some popular features already available in Visual Studio and Visual Studio Tools for Unity, making Unity development better for C# in Visual Studio Code. Currently, the Unity extension for VS Code offers the following:

  • A Unity debugger for debugging your Unity Editor and Unity Player.
  • Unity-specific C# analyzers and refactorings.
  • Code coloring for Unity file formats (.asmdef, .shader, .uss, .uxml).

You can download a preview version of the Unity extension for Visual Studio Code here. When you install a new Unity extension, VS Code will automatically install the dependent C# development kit and C# extension. To install this new plugin, you should meet the following requirements:

  • Unity 2021 or higher.
  • Activated the C# Development Kit extension in VS Code.
  • .NET 7 SDK or higher, the C# Development Kit will install it if needed.
  • Visual Studio EditorUnity package 2.0.20 or higher.

To launch VS Code from a Unity project, go to Unity's preferences and set Visual Studio Code as Unity's external C# editor.

New Unity extension VS Code is free for individuals, academia and open source development. For organizations, this extension is included with Visual Studio Professional and Enterprise subscriptions and GitHub Codespaces.

The above is the detailed content of Edit your Unity project in Visual Studio Code and you are now ready to go. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:yundongfang.com. If there is any infringement, please contact admin@php.cn delete