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

Allow alt+click / option+click in the MATLAB terminal to navigate

Open BizarrePenguin opened this issue 11 months ago • 3 comments

In other terminals like bash it is normal that one can alt+click (option+click on Mac) to navigate around in the current terminal line.

At least for me this is not possible with the MATLAB terminal in VS Code. This makes interactive sessions a lot harder as navigating is limited to left and right arrows, one character at a time.

On a related note, common commands such as strg+a / control+a and strg+e / control+e to jump to the beginning or end of the line in the terminal are also not available.

Is this behaviour reproducible for others? Is this maybe even a bug?

BizarrePenguin avatar Jan 23 '25 14:01 BizarrePenguin

I just noticed, that when I open a different shell in VS Code, like zsh, then execute matlab -nodesktop -nosplash and continue from there, I do get the ability to navigate via alt+click / option+click. Just an interesting observation.

BizarrePenguin avatar Jan 23 '25 22:01 BizarrePenguin

Nevermind, it seems more like a bug now. I noticed that the MATLAB terminal is mostly not working at all. Turning a different shell into a MATLAB one by executing "matlab -nodesktop -nosplash" works fine and then I have none of the problems mentioned above.

I can't reliable reproduce it and give useful diagnostic info, so I am gonna close this issue for now.

BizarrePenguin avatar Jan 24 '25 09:01 BizarrePenguin

Reopening this issue as I can confirm that this functionality is not available in the MATLAB Terminal and this feature is something we would like to consider adding to the MATLAB terminal in a future release.

Running MATLAB directly in a different shell is unrelated to the MATLAB terminal or this extension as it has none of the integrations with VS Code present.

philipb314 avatar Jan 24 '25 14:01 philipb314