4 ms·
You can keep it disabled and enable it with a hotkey when you think it can help. That's my strategy. You need to recognize what it's good for, like generating
by LelouBil 4y ago
You can keep it disabled and enable it with a hotkey when you think it can help. That's my strategy.
You need to recognize what it's good for, like generating code similar to what you've written but a little bit different.
For example : I had a project in Rust where I would print a sentence describing an error that occured. I had a big match block with my possible error variants. The error enum was declared in the same file.
And so, when I added a new error variant, I just had to place my cursor at the end of the match and watch copilot generate exactly or almost what I needed, a similar block of code that the other cases, but with a different message and using the fields of this varient intelligently.