feat: AI Assisted Code Suggestions: Provide a keyboard shortcut to quickly toggle ON/OFF
Context
We received feedback from one of our very large enterprise customers (Automotive Industry) on how their devs were using CodeSuggestions (used VS Code).
The customer's teams were wondering if there are hotkeys /keyboard shortcuts planned/available to disable/enable CodeSuggestions inside the IDEs, to explicitly not have AI suggest changes at all, for example when you are fixing some lines of code, and need to concentrate on that.
In our SLACK thread about this topic, @tmccaslin and @phikai also shared their thoughts / experience on this topic regarding hotkeys/shortcuts as :
- "...sometimes I am in a "generative" cycle where suggestions are great. But someitmes I'm in a "refine" where I am not looking for suggestions at all, I just want to fix a few things. I think that translates to programing too. Sometimes you're generating new code and open to suggestions, other times you are just trying to fix something really specific and you know exactly what you're doing. Being able to toggle between those modes could hlep code suggestions meet a user at their intention rather than just always spew suggestions.."
- "...sometimes you know what you want to write and sometimes you want it to help you. The use case of CS always helping isn't really valid if I know I just need to change XYZ.."
Proposal
Provide a keyboard shortcut/hotkey in all of supported IDEs for CodeSuggestions, to let devs quickly enable/disable CodeSuggestions, and also advertise this "feature" when a user uses CS the first time, or has updated the extension with this feature, to make users aware they can switch between on/off by a hotkey, and not just by using a UI element like described in feat: AI Assisted Code Suggestions: Provide a q... (#809 - closed)
cc @jgaetjens @Heddy2022 (FYI - as we work together with this customer)