I don’t use Rider, but this sounds interesting. I”ll add it
Here’s a quick video of how Rider does it. https://youtu.be/IYWxl0yyMa0
Is there a way to rename all instances of a variable/function name/ …etc at once?
Maybe we can right-click the variable, select Rename All ...
option, which shows an input field (or use the search field …etc). What it does under the hood is Find All References ..
first, then when the user enters the name it simply applies the name to all references.
Another way is using search. So when I highlight a variable, it shows all occurrences of that word/name in the whole file in a new small window, allowing the user to select which ones to apply the rename for (in case some occurrences were just similarities).
Another way using errors. So after a variable is renamed, it will cause the compiler to show errors, so SI3 can use those to find the affected occurrences directly and fix them. Basically letting the compiler do most of the work.
Another way is to add a Find-Replace feature and allow multiple selections.
Thank you!
Yes, that’s the proper way of implementing the Rename, and now that the code folding is pretty much done, this is my next top priority task.
new()
still shows a red line below it, but compiles successfully.
Screenshot? It must be a specific addition case I’ll have to cover too.
public Dictionary<string, Queue<int>> S;
public void Click()
{
// ...
S = new();
// ...
}
Code folding (Alt+Shift+<-) doesn’t fold the functions inside folded regions.
So if I have functionA
(unfolded) inside regionA
(folded), and I click the fold option, it folds the whole class, then when I unfold them one by one I find functionA
still unfolded.
Hmm, I see, you’re right. Checking now…
Would you consider an option to “save on focus change”? Both VSCode and Rider have an option to save the file when you change your window focus to another window. I’d assume this would be an additional option to “compile on save” or “double save” since they’re probably exclusive to each other. I’ve had a few crashes recently and luckily haven’t lost any changes yet, but it made me think of this feature in the other editors.
That would be an interesting feature, I believe, so yes, I can add that. But first, I’d have to find a way to control when the assemblies and domain will reload after a successful compile, which I have to do anyway to allow auto-compile in the background on save. And that all is going to be so cool
Hi!
I’m a bit lost here, haven’t found any ‘issues’ thread or something, so here it goes.
I’m using Unity on Linux (Bazzite, Fedora atomic desktop). Unity hard-crashes like 6 out of 10 when I press the F12 while editing code in an Si3 window. F12 supposed to move the cursor to the method/variable definition. Everything works when I use the mouse and right click, choose the option.
Another issue I have is that the auto-compete window sometimes devours a character. I start to type the code and when that popup appears, the character I typed at that moment disappears. I’m using Unity 2021.3.9f1. What should I do with these problems? Obviously the hard-crash is very disturbing, the other one is just annoying.
Uh, that’s an ancient version from 2022 and might not include some critical fixes. I’d suggest trying the latest 2021 LTS version, 2021.3.48f1, released just two days ago. I hope that will solve the issues, but if it doesn’t, or you cannot upgrade for any reason, please let me know, and I’ll investigate.