MATLAB-extension-for-vscode icon indicating copy to clipboard operation
MATLAB-extension-for-vscode copied to clipboard

Add tab auto completion to terminal

Open robertoffmoura opened this issue 10 months ago • 1 comments

This can be achieved by leveraging the existing tab autocompletion mechanism of the editor. When the user presses tab, create a fake file with the contents of the current terminal prompt and send a "textDocument/completion" request to the language server.

If there's only one completionItem, complete the current prompt with its content. If there are multiple possible completionItems, display them on the terminal.

robertoffmoura avatar Apr 23 '25 15:04 robertoffmoura

Issue: https://github.com/mathworks/MATLAB-extension-for-vscode/issues/104

robertoffmoura avatar Apr 23 '25 15:04 robertoffmoura

Thanks for this pull request! We actually had this in our pipeline for the 1.3.3 release ourselves, although with a slightly different design. I'm going to close this pull request, but I'd be curious what you think about the difference in UX design approaches.

philipb314 avatar May 09 '25 13:05 philipb314