microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
164.75k stars 29.47k forks source link

Explore terminal quick fixes based on selection #232657

Open Tyriar opened 3 weeks ago

Tyriar commented 3 weeks ago

Flow:

  1. Open terminal
  2. Run some command
  3. Select the contents

What if here a lightbulb with sparkle showed like in the editor with Explain This and Add Selection to Chat? Having this would make it possible to ask copilot about a command via only the keyboard:

  1. ctrl+shift+up to select above command
  2. ctrl+. to open quick fix menu
  3. Enter to select first option
Tyriar commented 3 weeks ago

Code actions in the editor pass in a range and will get called whenever the selection changes. Terminal quick fixes don't have this mechanism yet.