Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Feedback Detect Visual Studio Code.

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

  1. CyRaid

    CyRaid

    Joined:
    Mar 31, 2015
    Posts:
    134
    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:
    40
    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:
    134
    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
    orchard800 and Eyap like this.
  4. kevsturman81

    kevsturman81

    Joined:
    May 4, 2021
    Posts:
    1
    You can create a symlink to the snap version of code.

    Use which to find where vscode runs.

    which code


    eg. if the output from which is /snap/bin/code

    sudo ln -s /snap/bin/code /usr/bin/code
     
    Last edited: May 4, 2021
    SBakolis likes this.
  5. rahtomaya

    rahtomaya

    Joined:
    Nov 27, 2020
    Posts:
    1
    Thanks ! That solved for me