Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

IDE Rider and DOTS API

Discussion in 'Entity Component System' started by RoughSpaghetti3211, Nov 19, 2019.

  1. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    Tearing my hair out with VS and Mac and was wondering if anyone could give me some input on how Rider is with DOTS API.

    Thanks in advance
     
  2. Justin_Larrabee

    Justin_Larrabee

    Joined:
    Apr 24, 2018
    Posts:
    106
    I would assume quite good given that the Unity team uses it.
     
  3. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    On mac ?, VS is great on pc but man it can be an anchor on mac
     
  4. supron

    supron

    Joined:
    Aug 24, 2013
    Posts:
    67
    I am using rider on Windows and Linux. It works great with DOTS, because it can go to definition (f12) and find usages in packages. Actually you can browse packages like your own code. It supports DOTS debug views and jobs debugging (without Burst). AFAIK Rider has trial version. You can check it for yourself.
     
    Kuptsevych-Yuriy likes this.
  5. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    Ive been using the trail for a week and have to say wow!! Please add cool Rider tips and tricks , feels like there is so much more to discover !!
     
  6. eizenhorn

    eizenhorn

    Joined:
    Oct 17, 2016
    Posts:
    2,653
    Double shift :D And map folding\unfolding code blocks by level, very convenient thing.
     
  7. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    ahhhh yeaaa .. Like it
     
  8. julian-moschuering

    julian-moschuering

    Joined:
    Apr 15, 2014
    Posts:
    529
    Sorry, you have to map this to a Mac yourself:

    Some stuff you probably not know when coming from other APIs:
    * Postfixes, eg *myObjects.for* TAB -> creates for loop over myObjects array/list; there also is foreach and if (and others) eg *isVisible.if* creates if(isVisible){}
    * 'Live Templates': easily created yourself in the settings. Some simple ones you may redirect to your desired functions: log, logerr, logvar, logwarn, asrt (assert), asrtn(assert null)
    * *AWSOME*: Some Live Templates can be used to surround existing code: select code, type 'if' -> TAB -> code is reinserted in an if branch and condition is marked for typing. Same goes for try -> try/catch, catch is selected for typing; tryf -> try/finally, finally is selected for typing
    * A lot of stuff, like renaming something or chaning a function signature, can be refactored by simply doing it and the hitting Alt->Enter and selecting 'Apply rename refactoring' or 'Apply change signature refactoring'.

    *Look at the tutorial projects shown to you when launching Rider*
     
  9. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    Alt Enter seems like a magic
     
  10. RoughSpaghetti3211

    RoughSpaghetti3211

    Joined:
    Aug 11, 2015
    Posts:
    1,695
    Stupid question but what is this button that looks like an 2005 Mac book pro in the rider shortcuts.

    upload_2019-12-24_18-8-34.png
     
  11. RecursiveEclipse

    RecursiveEclipse

    Joined:
    Sep 6, 2018
    Posts:
    298
    (On windows) For Pycharm & Rider I set always set commit to Alt + C and 'go to definition' to middle mouse, bit more convenient than F12. If your mouse has forward/back buttons you can quickly switch between definition and where you were previously. Alt + Enter can also add missing interface methods for you.
     
    Last edited: Dec 25, 2019