ideunity-game-enginemonodevelop

Can you recomment a better IDE for Unity C# coding?


The current version of Unity uses the old MonoDevelop 2.8 which is very primitive. Not only that it cannot register compile errors, I am also unable to know which method I can use. Each time I want to use some built-in method (like OnGUI or OnTriggerEnter) I have to search them manually.

Since I am coming from the world of IntelliJ IDEA or Eclipse or VisualStudio, this is a very primitive way of working.

I tried using the latest Unity with the newest MonoDevelop 4.0, but I did not succeed.

Can you suggest a modern IDE which I can use with Unity, the one where I will enjoy coding?


Solution

  • Updated 02/08/2022


    JetBrains Rider


    There's a new cross-platform .NET IDE by JetBrains - Rider with build-in resharper-like commands and quite a list of features including rich web development support and specifically Unity

    Unity support

    Comments: I've been using it for some time already and my impression is very positive. It's faster compared to Visual Studio and has some really awesome hotkey combos, not to mention support for AceJump and a ton of other useful extensions.


    Visual Studio C# Integration




    1. In Unity, select from the menu Assets->Sync VisualStudio Project
    2. Find the newly created .sln file in your Unity project (one folder up from your Assets folder)
    3. Open that file with Visual Studio Express.
    4. You can now edit all your script files, and switch back to Unity to use them.

    Note: With Microsoft's Acquisition of SyntaxTree, Visual Studio Tools for Unity (formerly known as UnityVS) has been released free of charge in the Visual Studio gallery.

    This replaces the below steps for users of Visual Studio Professional and removes a number of caveats mentioned further below, allowing for debugging within VS, advanced project file integration, a mirrored console window withing VS, and more.

    1. In Unity, go to Edit->Preferences, and make sure that Visual Studio is selected as your preferred external editor.
    2. Doubleclick a C# file in your project. Visual Studio should automatically open that file for you.
    3. You can edit the file, save, and switch back to Unity.

    A few things to watch out for:


    Visual Studio Code (Windows, macOS, Linux)


    Unity supports opening scripts in Visual Studio Code (VS Code). To open scripts in VS Code, go to Unity > Preferences > External Tools > External Script Editor and select Visual Studio Code. For information on using VS Code with Unity, see Visual Studio’s documentation on Unity Development with VS Code.

    Prerequisites To use Visual Studio Code for C# code editing and Unity C# debugging support, you need to install:

    Sources:

    http://docs.unity3d.com/Documentation/Manual/VisualStudioIntegration.html https://docs.unity3d.com/Manual/ScriptingToolsIDEs.html