Search Unity

Script Inspector 3 - World's Fastest IDE for Unity

Discussion in 'Assets and Asset Store' started by Flipbookee, Jun 2, 2012.

?

What would you like to see in the next update?

Poll closed May 17, 2018.
  1. Line numbers

    140 vote(s)
    36.9%
  2. Code folding

    234 vote(s)
    61.7%
  3. More color schemes

    43 vote(s)
    11.3%
  4. Customizable color schemes

    71 vote(s)
    18.7%
  5. Search functionality

    152 vote(s)
    40.1%
  6. Lower price :D

    104 vote(s)
    27.4%
  7. No thanks, it's fine as it is :)

    11 vote(s)
    2.9%
Multiple votes are allowed.
  1. BenniKo

    BenniKo

    Joined:
    Mar 24, 2015
    Posts:
    100
    Thanks for the update.
    Yes Open AI / Codebot is a gamechanger.
    It helps a lot with trivial tasks that I always need to look up (like regex) and also with repetitive work.
     
    Flipbookee likes this.
  2. BenniKo

    BenniKo

    Joined:
    Mar 24, 2015
    Posts:
    100
    Another note on the OpenAI integration:
    You could add the possibility for users to add their own API key.
     
    Flipbookee likes this.
  3. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Sure, with OpenAI's Codex I'd definitely have to let users use their own API key. If I use my own key, we would exhaust its quota in no time (and I'd be paying the subscription for everyone :p).

    I assume they charge for this service because the ML model runs in the cloud, and possibly more because they've spent billions on training the model... But I'm also checking if there's anything similar to Codex, but for free, which would be a nice alternative for those who cannot afford the subscription.
     
  4. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    YAY! It seems like finally, I fixed the bug I was struggling with for more than a month. It was something I introduced recently while working on new features for the upcoming release. It was also a hell of a bug for debugging and I'm so glad I found a way to see what was wrong. And that was the last thing preventing this release, so please watch this thread for the announcement of a new release in a few days... :cool:
     
  5. Triunvirato

    Triunvirato

    Joined:
    Mar 9, 2019
    Posts:
    5
    Hey I would like to report a bug with error highlighting:

    Methods that return tuple values are constantly highlighted in red, and cannot be recognized by the editor
    upload_2022-1-11_10-38-59.png

    So, whenever I use the method, it does not autocomplete the arguments, and tells me the symbol is unknown:
    upload_2022-1-11_10-40-26.png

    furthermore, getting the tuple elements also returns unknown symbol
    upload_2022-1-11_10-41-17.png

    tuples created anywhere (not just in methods) also unknown
    upload_2022-1-11_10-43-17.png

    So, no tuple support :(

    I mean the code works and I rarely use tuples, but it's a bit annoying to have a bunch of non-existing errors :p
     

    Attached Files:

    Last edited: Jan 11, 2022
    Flipbookee likes this.
  6. imgodot

    imgodot

    Joined:
    Nov 29, 2013
    Posts:
    212
    Code-folding was referenced in numerous posts, but I don't see it in SI3.
    Not there or did I miss it? (Just bought SI3 and, so far, code-folding is the only VS feature I miss.)
     
    Flipbookee likes this.
  7. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @imgodot, it isn’t there yet. Sorry, adding support for modern C# language features took priority over code folding, but it won’t be for long, I believe. The feature is half- finished already and I’ll get back to it ASAP.
     
    Malerouille and Lars-Steenhoff like this.
  8. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @Triunvirato, right, I know - I implemented full support for C# tuple types and it is part of the upcoming release I mentioned in my last post above. :)
     
  9. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    @Flipbookee

    I have one question/request

    you see the vertical white line next to the line numbers?

    I want to make that darker, how would I do that?
    Thanks


    Screenshot 2022-01-11 at 17.37.24.png
     
    Flipbookee likes this.
  10. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Is it better like this?
    upload_2022-1-11_18-11-29.png

    I changed the value of the (misleadingly named) field fold from aluminium3 to aluminium4... Just change that, save the changes, and let Unity compile that - you should see the difference immediately :cool:
     
    Lars-Steenhoff likes this.
  11. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    Yes thank you that's better!
     
    Flipbookee likes this.
  12. imgodot

    imgodot

    Joined:
    Nov 29, 2013
    Posts:
    212
    Thanks for the response. I presumed that was the case.

    However, if the folding code is half finished, can't you release it as-is?
    That would allow us to fold our code sections ... halfway? ;)
    Or, would it allow us to fold half of our code sections? ;)

    -- Paul
     
    Flipbookee likes this.
  13. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    My choice ended on aluminium6, now looks very nice
     
    Flipbookee likes this.
  14. Triunvirato

    Triunvirato

    Joined:
    Mar 9, 2019
    Posts:
    5
    Hey, I would like to request a feature (along with code folding): Could you add these dotted lines that facilitate viewing of code blocks, like visual studio:

    upload_2022-2-7_16-43-20.png


    Thanks for this amazing, blazing fast asset btw!
     

    Attached Files:

    Flipbookee and Stexe like this.
  15. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Yup, I miss those lines too - will do...

    Thanks, and thanks for your amazing review :rolleyes:
     
  16. the_unity_saga

    the_unity_saga

    Joined:
    Sep 17, 2016
    Posts:
    268
    hey great asset
    using it for years

    however ive noticed every time I update class files it tends to reload my entire projects assemblies for compiling, is there anyway to make this process faster? Ive been considering going back to visual studio (ehhh), but I REALLY love your asset.
     
    Flipbookee likes this.
  17. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Thanks so much, @gRtVnAUoolam1492! :rolleyes:

    Look, if you're asking me if I can do something in Si3 to make compiling and reloading assemblies faster, then no, because that's something Unity does. Switching to some other IDE won't help either because IDEs don't do that for Unity, and Unity makes its own decisions about what has to recompile and then runs one of its own compilers. Si3 and external IDEs have nothing to do with that.

    But still, there is something you could do to improve compiling speed of your projects - you'll just have to understand and use correctly Unity's Assembly Definitions:
    https://docs.unity3d.com/Manual/ScriptCompilationAssemblyDefinitionFiles.html

    Or just google the subject and you'll find plenty of resources, like this one for example:
    http://www.screaminggoose.com/blog/2019/2/4/how-i-cut-unity-compile-times-by-75
     
    Malerouille and the_unity_saga like this.
  18. yunpu1004

    yunpu1004

    Joined:
    Mar 8, 2020
    Posts:
    2
    How can i make custom tooltip with comment such as below? :
    /// <summary>
    /// blah blah
    /// </summary>
    public void blah(){......}
     
    Flipbookee likes this.
  19. Nihil688

    Nihil688

    Joined:
    Mar 12, 2013
    Posts:
    503
    Hi @Flipbookee is there a way to use the text formatting in runtime?
     
    Flipbookee likes this.
  20. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @yunpu1004, I'm sorry, you cannot. The tooltips don't pick up those comments currently, and I'll have to do some refactoring to implement this feature without hurting the performance. That was a compromise I had to make in order to make Si3 the fastest code editor in the world, but don't worry, I have a plan how to add this feature and keep Si3 as fast as it is, if not even a bit faster than now.
     
    yunpu1004 and Stexe like this.
  21. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @Nihil688, you mean like, to use Si3 in a built project? No, there's no way because Si3 relies on a lot of the Editor only features of Unity.
     
    Stexe likes this.
  22. the_unity_saga

    the_unity_saga

    Joined:
    Sep 17, 2016
    Posts:
    268
    hey just making a comment, but when I disabled "Don't ask to save, just store in memory" somehow it made the script editor work faster and more stable, such as not losing whole lines of code when switching tabs to look at other code or tabbing out of editor and respecting initial save.

    anyway thanks again for your excellent work, without this tool i'd have gone insane years ago when it came to dev time in unity.
     
    Flipbookee likes this.
  23. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Hmm, that's something very interesting now... I'm going to check that - thanks for reporting!

    Right, I know that feeling very well ;) I've been there too and wished to have just at least something that works well. I was like "Jeez MD, just stop getting into my way and distracting me, I'm trying to get some work done here!". And that's why this tool was made :)
     
  24. Nihil688

    Nihil688

    Joined:
    Mar 12, 2013
    Posts:
    503
    Just for the text formatting. Basically I want to colour C# based variables etc, nothing more
     
    Flipbookee likes this.
  25. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    I see... If that's only for viewing C# code, Si3 might be an overkill. Even if it's for editing, it still might be too much as it's optimized to handle large scripts in large projects. And adapting it to work outside of the Unity Editor would be too much work...

    Someone else asked this same question, and I think at the end he ended up with his own, much simpler solution. I suggested coloring the text using Unity's built-in text formatting tags. So for viewing only, I suggested to him to replace all the words in the script that need highlighting with the same word but wrapped inside a <color> tag and to display that in a regular UI element. To allow editing as well, I suggest using two such UI elements placed on top of each other, where one is used to edit the unformatted text (maybe fully transparent / invisible), while the other one shows that same text but formatted with all the colors. And I think he did that in almost no time and it worked well :)
     
  26. HungNguyen90

    HungNguyen90

    Joined:
    Apr 3, 2014
    Posts:
    4
    Thank you Flipbookee. It's AMAZING!
    P/S: can you add Function list panel?
     
    Flipbookee likes this.
  27. Nihil688

    Nihil688

    Joined:
    Mar 12, 2013
    Posts:
    503
    sure, I just wanted something ready instead of going and regexing everything from scratch :D
     
    Flipbookee likes this.
  28. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    YAY!!! Thanks so much! :) Please don't forget to post a review :rolleyes:

    Yeah maybe, but there's already something like that in the Code Navigation toolbar:
    upload_2022-3-11_15-43-57.png

    Just press that button in it with the mouse or access the list with Alt+M on Windows or Ctrl-M on macOS :cool:
     
  29. unity_A0HrN8vE0XQ8Gw

    unity_A0HrN8vE0XQ8Gw

    Joined:
    Sep 8, 2018
    Posts:
    4
    Hello, I really enjoy using your asset. Just curious how the next update is coming along? Getting close?

    Thanks!
     
    Flipbookee likes this.
  30. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Yes, it’s really close now and I’m giving my best to complete that by the end of today.
     
  31. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    That didn't go all by the plan but bear with me - I'm pretty sure I'll finish it during this week...
     
  32. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Hey, my friends! Guess what's new today :)

    Script Inspector 3
    version 3.0.31
    is now available for download here

    It has some new features, many fixes, and improvements. Most notably:
    - IMPORTANT FIXES:
    * Fixed indentation with tab characters
    * Fixed potential infinite loop in the parser
    - C# 5.0-8.0 support:
    * Tuple types with explicitly and implicitly named fields, decomposition, and discard variables
    * Discard variables in assignments and out arguments
    * Pattern matching in "is expressions" for all 3 types: declaration, constant, and var patterns
    * Both null-conditional operators: ?. and ?[]
    * Null-coalescing assignment operator ??=
    * Binary literals
    * Digit separators
    - Added argument hints for constructors
    - Added "Search in Selection" option to Find in Files and Replace All - thanks @iloveloon
    - Added tooltips on SI tab titles showing file location
    - Improved tooltips to show the short syntax for Nullable types
    - Improved keyboard handling on Windows when the search field is focused
    - Saving CPU time and battery power by not blinking the caret when Unity Editor is not in focus
    - Fixed implicitly typed parameters of lambda expressions used as constructor arguments - thanks @zKici
    - Fixed reloading of externally modified files - thanks @JRDev
    - Fixed resolving constructor overloads
    - Fixed scope of foreach local variables
    - Fixed parsing of interpolated strings
    - Fixed lifted operators for nullable types
    - Fixed implicit conversion of types to an interface they implement
    - Fixed positioning of tooltips for C# code symbols
    - Fixed key bindings for quick find commands when arguments hint tooltip is open
    - Fixed syntax highlighting of the keyword "finally"
    - Fixed highlighting of matching braces
    - Fixed highlighting the line number of the current line
    - Fixed a rare issue with vertical positioning of text lines
    - Fixed a rare issue with the background color

    Please note that you can only download the new version of Si3 with Unity version 2018.4 or newer! After downloading it there, you can copy it into your other projects for older versions of Unity. This is because uploading for a version of Unity older than 2018.4 is not working currently, and I don't know is that a permanent new restriction or a temporary issue with the Asset Store or the Asset Store Tools.

    Thanks! Enjoy and please don't forget to post your feedback (here or as a new review).
     
  33. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    Amazing huge update ! Thanks!!
     
    Flipbookee likes this.
  34. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526
    I have one request, can you add bit more space between the two little arrows ( up , down ) X.
    Its a bit hard for me to click these small icons, and if more space between them it would be easer. also a bit more padding before the X, Thanks

    Screenshot 2022-04-11 at 22.45.31.png
     
  35. digiwombat

    digiwombat

    Joined:
    Sep 26, 2013
    Posts:
    48
    @Flipbookee Did DGordon ever send this along? It's definitely still a use case I'm interested in.
     
    Flipbookee likes this.
  36. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Did he send his SITextArea? I don’t think he did, but it was a long time ago, so I may be wrong. I checked my inbox quickly, didn’t find that there.
     
  37. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Attention, please! There's a critical update waiting for you:

    Script Inspector 3
    version 3.0.32
    is now available for download here

    This is what's new in this release:
    - CRITICAL FIXES:
    * Fixed crash on resolving discard variable - thanks @michaellandonhatfield
    * Fixed crash on resolving named arguments
    - Supported double-click and right-click on log entries in SI Console logged with Full Stack Trace Logging
    - Updated look of search field and Code Navigation toolbar in Unity 2019.3+
    - Optimized keyboard input handling
    - Allowed editing .php and .py assets in the Inspector
    - Fixed resolving "foreach" variable type for non-interface based enumerable
    - Fixed auto-suggestions after the "new" keyword
    - Fixed auto-fix for adding a missing using directives and fully qualifying symbols
    - Fixed missing duplicates in call-stack frames for log entries on right-click in SI Console
    - Fixed tooltip on the first word-wrapped symbol
    - Fixed embedding in Properties windows

    It may not look like there were too many changes, but they are indeed critically important, so please update ASAP.

    Enjoy! :cool:
     
    valarnur likes this.
  38. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Fun fact:

    Did you know this? Out of all non-free assets on the Asset Store, almost 70,000 of them, only 14 assets have received more 5-star reviews than Si3 :rolleyes:

    Thank you all for your great support and encouragement :cool:
     
    Stexe likes this.
  39. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    @digiwombat, no - SuperEditor doesn't allow that either because that's essentially Si3 with some minor modifications. It's a copy of Si3 stolen by a pirate and giving it away for "free", where "free" is in double-quotes because criminals never do something for free. It's a way for him to get full and unlimited access to your machine in the hope to steal something valuable from there. Running pirate's stolen, modified, and then obfuscated code is worse than letting a criminal stay in your home while you're not at home :p
     
  40. digiwombat

    digiwombat

    Joined:
    Sep 26, 2013
    Posts:
    48
    Oh man, thanks for letting me know. I had no idea it was pirated SI3. I thought it was a bit curious that it was a .dll, though people are cagey about source releases for Unity Assets pretty often. I removed my comment from his repo and you should considering sending a DMCA against the repo:

    https://docs.github.com/github/site-policy/guide-to-submitting-a-dmca-takedown-notice

    I don't currently own SI3 since I don't really have a use for the asset without the ability to build it into custom editors (I do my own work in VS Code lately) so I'm not familiar enough to have recognized that it was SI3 rebranded. Sorry about that. I'm just looking for a solution to some editor features I'd like to have for my codegen/scripting editors and will happily pay for.
     
    Stexe and Flipbookee like this.
  41. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Hey folks! Guess who's celebrating its 10th birthday today :)

    And on that occasion, here's a small present for you all:

    Script Inspector 3
    version 3.0.33
    is now available for download here

    This is what's new in this release:
    - IMPORTANT FIX: Fixed assembly references when they are stripped out
    - Fixed resolving certain generic extension method overloads
    - Fixed Unity Scripting API URL for event members

    Enjoy! :cool:
     
    Malerouille, Rusted_Games and Stexe like this.
  42. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    No guesses? I don't know, maybe it was obvious to all, but yeah, it was Script Inspector's birthday :) it turned 10, believe it or not.

    It's amazing how fast the time flies when you're busy (and I can't believe I'm 10 years older since I started this project).
     
    Rusted_Games and AthrunVLokiz like this.
  43. Leslie-Young

    Leslie-Young

    Joined:
    Dec 24, 2008
    Posts:
    1,148
    Is font ligatures supported?
     
    Flipbookee likes this.
  44. Blepius

    Blepius

    Joined:
    Mar 9, 2021
    Posts:
    68
    I've unassigned all shortcuts available for Script Inspector 3 in the Shortcuts window, but Find Text still opens when I press Ctrl+Shift+F, which is the default shortcut for Unity's Main Menu/GameObject/Align With View command.

    It might just be my weird keyboard?
     
    Flipbookee likes this.
  45. hotpeperoncino

    hotpeperoncino

    Joined:
    Apr 11, 2019
    Posts:
    18
    Cursor position looks broken.
    My usecase is that i develop a project in a usbdisk, i connect the usb disk to a computer A and change to other computer, computer B. Computer a and b has different monitor with different resolution(4k and FHD).
    The updating screen resolution does not look affecting script inspector 3 so cursor position looks broken.
     
    Flipbookee likes this.
  46. GrassWhooper

    GrassWhooper

    Joined:
    Mar 25, 2016
    Posts:
    109
    woah, what a great asset, as someone who works on multiple devices, some of which are linux, some of which are windows, i was always very annoyed by the amount of time i had to keep fiddiling with my IDEs every time they get updated, till they work this looks like a life saver
    and very happy to see its still being updated it as well
    honestly, i think, the only 2 features that make me not fully transition is probably no F2 (in VSCode i'd press F2 and then it would rename all instances of the thing that is selected, so if i have variable named
    health
    if i press F2 and then write the new name, it'd be renamed everywhere where this variable was referenced

    and the second thing is go to definition, i am not sure if we can change the hotkey to be honest, but if we can it'd be perfect (basically its F12, and 99% of the times its `Control + left click` at least in mono develop and VScode)

    i guess the second one is more of a nit pick as i can build some muscle memory, but the first one, i just cant use a code editor without it sadly

    and the F12 is quite slow sadly, it can take like 5 seconds to find some classes sadly

    Edit:
    well, it appears that there is no auto format feature type of thing, which is more of a good helper

    but a big deal for me was after investigating further the nested functions do not work :'(
    i guess i could use Action a = ()=>{};
    but well, a lot of code is already written in nested functions format oh well, almost perfect :D
     
    Last edited: Sep 4, 2022
    Flipbookee likes this.
  47. Lars-Steenhoff

    Lars-Steenhoff

    Joined:
    Aug 7, 2007
    Posts:
    3,526


    Nice recommendation for SI3
     
    Flipbookee likes this.
  48. Leslie-Young

    Leslie-Young

    Joined:
    Dec 24, 2008
    Posts:
    1,148
    @Flipbookee Do you still view this thread or is there a different place to ask questions?
     
    Flipbookee likes this.
  49. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    Well no, no one asked for that... What did you have in mind to use them for, in particular? To change the appearance of ==, !=. >=, <=. => and such, or something else?
     
  50. Flipbookee

    Flipbookee

    Joined:
    Jun 2, 2012
    Posts:
    2,793
    This thread is OK, sorry for the delay... I missed some notifications initially, then saw many posts and wanted to find enough time to answer all at once.
     
    Stexe likes this.