Linux Hot Key Settings

On Linux Ubuntu 14.04, MATLAB uses the weirdest hot key combinations I've ever seen by default. For example, to copy is 'Alt+W' and paste is 'Ctrl+Y'. I want the standard 'Ctrl+C' and 'Ctrl+V' combinations. How do I control this?

 Accepted Answer

Walter Roberson
Walter Roberson on 14 Jan 2016

24 votes

Preferences -> Keyboard -> Shortcuts

7 Comments

In linux, in Keyboard -> Shortcuts, set the active set to "Windows Default Set" instead of "Emacs...". Problem solved!
Christopher Wong's words is 100% correct! Solve my problem in a minute! Please, other guys follow this!
Christopher Wong you're the boss thanx you haha
Why do we even have to bother with changing it? Does anyone actually use this strange shortcut setup in any application?
Yeah, it's set to emacs defaults, a lot of Linux purists prefer it.
Eric
Eric on 13 Jun 2024
Edited: Eric on 13 Jun 2024
Thank you for your answer. Nevertheless, I agree with @Artur Przybysz: the default shorcut set is weird. And emacs user are a minority. But beside this i cannot even find the command "search" in Preferences -> Keyboard -> Shortcuts (which is defined as <Ctrl> + <f> in Windows as well as MacOS (if I remember correctly for macOS). What is this command called / how can I change that?
Switch to the Windows Default Set in the MATLAB Keyboard Shortcut Preferences then press Ctrl+F while the cursor is in the search bar in the preferences window. This will list the actions whose shortcuts include Ctrl+F. Once you've found that, switch back to the Emacs Default Set and search for that action name.
The actions you're looking for could be either Find (in MATLAB Editor, Command History, MATLAB Desktop, or Command Window) or Find Files (in Current Folder) based on a quick experiment.
In the Emacs Default Set these are Ctrl-H (for Find in Command History, MATLAB Desktop, or Command Window), Ctrl-Shift-H (for Find in MATLAB Editor; Ctrl-H is Replace in the Editor), or Ctrl-H (for Find Files in Current Folder.)

Sign in to comment.

More Answers (1)

Reeshabh Kumar Ranjan
Reeshabh Kumar Ranjan on 26 May 2019

49 votes

Change the Shortcut's Active setting to Windows Default Set:
HOME > Preferences > Keyboard > Shortcuts > Active settings
matlab_shortcut_linux.png

14 Comments

Thank you!
This saved me from throwing my computer out a window. Thank you!
Thanks a lot
Thank you, this works and helps me.
Thanks It helped me alot!
Thanks man......
This is really helpful. Thank you!
Worked on Ubuntu 20.04 MATLAB R2021b, thank you!
fantastic, thanks
Wow, I did not know this, but keep trying to remember commands for both windows and Linux, which makes me crazy.
I love this.
Makes life simpler....thnx
Awesome, thank you so much
ABH
ABH on 8 Apr 2024
Thank you verrrrrrrrry much !
Thanks!

Sign in to comment.

Categories

Products

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!