Search Unity

Feedback Detect Visual Studio Code.

Discussion in 'Linux Editor' started by CyRaid, Sep 12, 2019.

  1. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    80
    I have Visual Studio Code installed via snap, /snap/bin/code .. Does Linux version detect this? It doesn't show the generate csproj when I select the code executable.
     
  2. Eyap

    Eyap

    Joined:
    Nov 17, 2017
    Posts:
    13
    Yes, it should. You can set Unity to use VSCode in the Preferences > External Tools.
    If you are using unity 2019.x, you also need to install the vscode package (in the Package Manager).

    Also, note that there may be some kind of limitations, depending on your linux version / unity version (typically early 2019.1) ? (See : https://forum.unity.com/threads/cant-get-vscode-to-work-properly-with-unity.538224/#post-4941029)
    But as a personal experience, it's working great recently.

    Eyap
     
  3. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    80
    Hi Eyap, thanks for the info.. Apparently it was because nothing was compiling as I was getting the '2 error' as described here: https://forum.unity.com/threads/two-empty-errors.743735/

    But works now, thanks for your time Eyap.

    Edit: Also, for anyone reading, it helps to install vscode via apt, not snap. Unity detects /usr/bin/code but not /usr/snap/bin/code .. :) I just installed mono-devel via apt, and vscode via apt, and all problems were gone. Now if only I could get the scroll wheel to work. ;)
     
    Last edited: Sep 12, 2019
    Eyap likes this.