You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I have multiple cursors active, it means I want to perform the same operations (typing, selecting, etc.) at each cursor location. I'm often using snippets that utilise multiple cursors. Copilot would be very helpful in these cases, except that it only applies edits to the first cursor. This is of particular issue when utilising multi-cursor snippets, as it prevents the intended behaviour of the snippet from taking effect when Copilot is trying to be helpful. Here's a TypeScript snippet I use all the time as a good example:
It helps write an initial constructor signature. You just type the parameter list as you would normally, and it generates all the private class fields and the initial assignment statements in the constructor. A demonstration is below. You can see the usefulness of the snippet, and you can see Copilot trying to be helpful. Copilot is offering me correct suggestions that I'd like to accept. Unfortunately, if I were to do so it would only affect the first cursor, which would mess up the snippet's regex replacement behaviour when finalising the snippet.
The text was updated successfully, but these errors were encountered:
This is actually a problem whether or not you're using snippets. I just got an enterprise license from my company and started using Copilot again and forgot how much I hated this bug. I am in the middle of a massive refactor of code, and multi-cursor is the easiest way to change all of the lines at the same time and save myself some time, but Copilot overrides the default VS Code intellisense, so when it suggests something, I can't use that suggestion for every line that I have my cursor on. It only applies to the first line that I selected. On the other hand, the VS Code intellisense knows that when I have multi-cursor enabled, it should apply the accepted suggestion to ALL lines, not just the first (even though it only shows the suggestion on the first line still)
If I have multiple cursors active, it means I want to perform the same operations (typing, selecting, etc.) at each cursor location. I'm often using snippets that utilise multiple cursors. Copilot would be very helpful in these cases, except that it only applies edits to the first cursor. This is of particular issue when utilising multi-cursor snippets, as it prevents the intended behaviour of the snippet from taking effect when Copilot is trying to be helpful. Here's a TypeScript snippet I use all the time as a good example:
It helps write an initial constructor signature. You just type the parameter list as you would normally, and it generates all the private class fields and the initial assignment statements in the constructor. A demonstration is below. You can see the usefulness of the snippet, and you can see Copilot trying to be helpful. Copilot is offering me correct suggestions that I'd like to accept. Unfortunately, if I were to do so it would only affect the first cursor, which would mess up the snippet's regex replacement behaviour when finalising the snippet.
The text was updated successfully, but these errors were encountered: