Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IntelliSense completion options when pressing backspace #54106

Open
mikadumont opened this issue Jun 15, 2021 · 10 comments
Open

IntelliSense completion options when pressing backspace #54106

mikadumont opened this issue Jun 15, 2021 · 10 comments

Comments

@mikadumont
Copy link
Contributor

Direct customer quote copying here:

Autocompletion options for when you backspace, when you write again, the autocompletion options do not reappear. For example, if I have two variables called "handLeft" and "handRight", and I start writing "hand", I'm going to have both options. However, if I type "handL", then backspace to "hand", I don't have any completion available.

@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label Jun 15, 2021
@CyrusNajmabadi
Copy link
Member

Note: this is so that users can quickly go edit (through deletion) many pieces of code rapidly. we don't want delete to being up the completion list, capturing the caret and causing frustration. This was tried and received too much negative feedback. However, we could have an option here, just as long as it's opt-in, and not opt-out.

@mikadumont
Copy link
Contributor Author

Direct customer feedback copying here:

After accepting an autocompletion suggestion, erasing part of the code and begin to type again, suggestions does not pop up. Kind of annoying if you accidentally accepted Debug.Write(), but wanted Debug.WriteLine() and have to either type it manually or backspace all the way to the ‘.’ to get suggestions to pop up again.

@CyrusNajmabadi
Copy link
Member

you don't need to do that though. just hut ctrl-space or ctrl-j and they'll pop up again after Write :)

@mikadumont
Copy link
Contributor Author

you don't need to do that though. just hut ctrl-space or ctrl-j and they'll pop up again after Write :)

Will follow up with them to try that.

@jinujoseph jinujoseph removed the untriaged Issues and PRs which have not yet been triaged by a lead label Jun 16, 2021
@jinujoseph jinujoseph added this to the Backlog milestone Jun 16, 2021
@jinujoseph
Copy link
Contributor

cc @genlu

@mikadumont
Copy link
Contributor Author

Related customer feedback copying here:

The suggested text doesn't reappear when you start editing text. In order to get suggested text again, you have to delete the word and start again.

@CyrusNajmabadi
Copy link
Member

So i'm very skeptical about this item. About the only mechanism that could work woudl be to add an option for this. However, in order for an option to work, the customers would have to find and enable them. However, based on the fact that the customers don't know how to bring up completion anyways, i'm skeptical that then they would know how to find and enable such options.

@CyrusNajmabadi
Copy link
Member

What if we had an intellicode feature that noticed you backspacing, then starting completion again just to select something that you could have brought up directly? It could tell the user "instead of fully deleting and retyping, just hit ctrl-j".

@mikadumont
Copy link
Contributor Author

I like the IntelliCode option. Sam also suggested in the design meeting today to use telemetry to drive some sort of inline tip so if a user rarely uses ctrl+space to bring up completion then we should give them a hint to use it. Also I was not aware that we have a Tools Option setting to bring up completion on backspace: show completion when a character is deleted so I will be syncing with UX to figure out ways to make our options + shortcuts more discoverable.

@allisonchou allisonchou added this to In Queue in IDE: Design review via automation Jul 26, 2021
@allisonchou allisonchou moved this from In Queue to Need Proposal in IDE: Design review Jul 26, 2021
@mikadumont
Copy link
Contributor Author

I met with UX and a possible solution can be to add a tipping service that we can pop up after a certain number of interactions similar to what IntelliCode does for Find/Replace:
MicrosoftTeams-image (4)

@jmarolf jmarolf added the User Story A single user-facing feature. Can be grouped under an epic. label Dec 2, 2021
@jmarolf jmarolf removed the User Story A single user-facing feature. Can be grouped under an epic. label Jan 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Need Proposal
IDE: Design review
  
Need Proposal
Development

No branches or pull requests

4 participants