

THE KEY STEP: For External Script Editor Args fill $(File) - without quote marks! Navigate to the file /usr/bin/code and click on Open. In Unity Preferences choose External Tools (left side).Ĭlick on the button next to the ticket External Tools Editor and choose Browse. Set Visual Studio Code as default script editor in Unit圓d Install Unit圓d and the dependencies via the command line: sudo dpkg -i unity*.deb The latest version can be downloaded from ( source of the information): this link. Unit圓d for Linux is Beta version at the moment and more details could be found in Unity Blog. You can use either which code or whereis vscode in order to find it. The binary may also be /snap/bin/code if you used the software installer to install VSCODE. The binary of VSC is /usr/share/code/code, but wen we execute code in the command line is executed the startup script /usr/bin/code and we will use it in the latest section. Install VSC and the dependencies via the command line: sudo dpkg -i code*.deb This is the path to VSC's shortcut.ĭownload the latest version from the official page. I want to make Unit圓d to show directly the script, because when my project will become bigger, it would be easier for me to edit scripts without searching them.Īs far as now, I only have one argument for VSC ("$(File)") that is ("$(/usr/share/code/code -unity-launch )"). Watch this video to see how I need to search the script. The only way to edit the script is to open VSC and add the project folder, the I have to search the script in the whole project folder. TriggerChecker.cs), VSC opens but the script doesn't appear. I copy-pasted the location of the VSC, but when I try to open a script (e.g. I put the shortcut of VSC, but I have to put an argument (e.g. Please watch this 30 seconds video and don't confuse Unit圓d (the world-leading creation engine) with Unity (the default desktop environment of Ubuntu 16). I want Visual Studio Code to be my default script editor within Unit圓d. I work in Ubuntu 16.04 and I have Unit圓d installed.
