mathworks / mathworks/MATLAB-extension-for-vscode

Change keyboard shortcuts to emacs mode

Open
#131 4 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement
Dominant language
TypeScript
Stars
435
Forks
40
PR merge metrics
No merged PRs in 30d

Description

I am used to having emacs keybindings in matlab running in windows (e.g, ctrl-a goes to start of line, ctrl-e to end of line, ...). Using the matlab-vscode extension, I have the default keymappings (ctrl-a selects all). In the normal Matlab window, I can change this in the "keyboard shortcuts preferences" (e-macs default set with a couple of tweaks).

It would be nice to be able to change the keymap, e.g., by manually reading an xml file. I have tried changing it from the matlab terminal, using an undocumented feature:
com.mathworks.services.Prefs.setStringPref('CurrentKeyBindingSet', 'Emacs')
But that didn't work.

What would be cool is to start the matlab terminal in a cmder terminal (https://cmder.app/), which has these keybindings.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing how the extension defines keyboard shortcuts and launches the MATLAB terminal; the issue does not name specific files or tests. Compare the requested Emacs-style behavior with VS Code's keybinding mechanisms and the mentioned MATLAB preferences and cmder alternatives. Done would mean users can select or configure Emacs-like shortcuts in the extension and verify the key behaviors.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript, vscode
Domain
developer-experience, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.