VS Code Extension (Desktop): Optimize Code Suggestion Requests Based on Keystroke Speed

Purpose

The purpose of this issue is to enhance the efficiency of our code suggestion feature in the VS Code (Desktop) IDE by intelligently adapting to users' keystroke speed.

Background

Currently, our IDEs send code suggestion requests at a consistent rate, regardless of how quickly or slowly the user is typing. This approach can result in unnecessary code suggestion requests and inflate our acceptance rate statistics. Proposal: We propose implementing a system that tracks the keystroke speed of users while they code. Fast keystroke speeds often indicate that the engineer is confident and does not require code suggestions while typing rapidly. In contrast, slower keystrokes may imply that the user is almost done with their coding, in which case a code suggestion might be useful for adding comments, or they need assistance with a complex task.

Benefits

  1. Reduces unnecessary code suggestion requests, improving the user experience.
  2. Optimizes our acceptance rate statistics by sending requests only when needed.
  3. Enhances efficiency by providing code suggestions at the right moments.

Implementation Steps

  1. Develop a keystroke speed tracking mechanism within our IDEs.
  2. Establish thresholds for keystroke speeds that trigger code suggestion requests.
  3. Implement logic to send code suggestions based on the user's typing velocity.

Related to ...

Improvements in IDE's when to request a code su... (&11308 - closed)

Edited by Darva Satcher