CodeGPT icon indicating copy to clipboard operation
CodeGPT copied to clipboard

Shortcut for code completion

Open dss99911 opened this issue 1 year ago • 1 comments

Describe the need of your request

I want to trigger code completion manually using a shortcut instead of it running automatically every time.

Also, the code completion results appear with a noticeable delay, possibly due to a waiting period before execution. To reduce latency, I prefer using a shortcut to trigger it directly without the delay.

Proposed solution

add shortcut for the completion instead of automatic completion.

Additional context

No response

dss99911 avatar Dec 10 '24 06:12 dss99911

This is so much needed!

Also it can help to handle conflict with IntelliSense popups, at least I perceive it to be a conflict that is when I start typing something, with the intention to set the direction for the completion to start from, e.g. I want it to log an error, but I don't want to write the message myself, I start to type cons... with the expectation that completion will return something like console.error('Some nice error message.');. But Also when I type cons... the IDE shows its own IntelliSense popup showing symbols etc. Which is useful sometimes, but not when I expect an AI completion. And it looks like this popup blocks the AI completion. So I hit ESC to remove the IntelliSense popup. But now when I wait for the completion it does not start. It apparently only starts if I type a character. But when I type a character, the IntelliSense popup kicks in again. So most of the time, the only reliable way to trigger an AI completion is to hit an enter and start a new line. However, that way I cannot preset the way the line should start.

If there was a ProxyAI completion KB shortcut, I could just hit that any time, and get a completion.

Would also be nice to have an option to disable automatic completions at the same time, to save API costs/tokens/system load, when we don't expect a completion.

BenceSzalai avatar Apr 27 '25 14:04 BenceSzalai