Integrate the Unity game engine and Visual Studio Code Editor

Source: Internet
Author: User

Sun Guangdong 2015.8.26


There has been a pain point in developing unity games for a long time: using MonoDevelop as the IDE.

Visual Studio on my desktop Windows PC, everything becomes quite handy after using Unity VS plugins!.

However, there is another problem: if you need to work on a MAC system platform to help developers develop IOS games, I can't imagine the similarities of every boot entry just to use Visual Studio for everyday development.

Other packages like sublime are powerful but they lack the IntelliSense-auto-completion (which for me can really speed up development).


anyway, I no longer tolerate MonoDevelop and don't have to jump to my PC desktop because Visual Studio Code is here. It is a lightweight complete version of Visual Studio with IntelliSense, debugging and Git integration, and it's available for PC, Mac and Linux.


Similar to the sublime style. This is also very sexy.

For some reason, for the VS Code site it said it was developed for node. js and ASP.-There is no integration of C # with unity. This has led many people to ask, "How do you integrate it with unity?"

Well, the good news: Of course you can.



1. Open Visual Studio Code
You can use the VS Code for the text editor-as you will sublime, Notepad, notepad++--by simply opening the. cs file for quick and easy editing, but I want to set up my complete solution.


2. Open your Unity Project
You need to select a project folder, just like when you open a full unity project.

3. Select the right project
your project will be in VS Code, but you need to connect the correct solution file. at the bottom left it will show you how many different items are available. You need the-csharp.sln of "Nameofproject",

Instead of displaying "Nameofproject". sln.


4. Code and Happiness
Locate your script and open a. You should now have a pretty good auto-complete feature, just like using Visual Studio or MonoDevelop.


5. Make it default
Set Visual Studio Code as the default IDE in unity.


Some notes:

    • The mono runtime may need to update everything.
    • The Unity feature is not debugged, but hopefully it will come soon.
    • This is still in 0.1.0 preview mode.
    • the Github extension with the Unity VS Code feature already has a package, but I haven't tried it yet. try to check it out for yourself:
    • Https://gist.github.com/mwegner/86d7d4266089fa5cbe64
    • Https://github.com/kode80/VSCUnity


Technical sources:

http://www.develop-online.net/tutorials/integrating-unity-and-visual-studio-code/0209310

????

Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.

Integrating the Unity game engine and the Visual Studio Code Editor

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.