Keyboard shortcut for change to upper case in editor

In R2021a I have a keyboard shortcut which changes selected text to upper case in the editor. In R2022a the action "Change to upper case" no longer appears in the list of actions found under Home > Preferences > Keyboard > Shortcuts. Is there an alternative way to set up such a shortcut now?

 Accepted Answer

It turns out that CTRL+SHIFT+A does what I need. A pity that it's apparently stopped being user-settable, but at least a shortuct exists. (I still haven't found where this is documented, but the operation is listed and a shortcut shown if you right-click highlighted text in the editor. I guess this is supposed to be obvious, but it wasn't to me.)

More Answers (2)

When you installed the new version it should have transferred over all your shortcuts. It did for me. It it's not there in the quick launch toolbar in the upper right then you'll just have to recreate the shortcut.

6 Comments

But how can I recreate the shortcut when the action isn't present in the list of possible actions?
Not sure I understand. Did you make a shortcut that was essentially a script that you ran by clicking on the button in the quicklaunch toolbar in the upper right corner of MATLAB? You can also assign a keystroke to them. How did you get your shortcut setup before this version?
In a previous version, I made the shortcut in Preferences, as described here. One of the actions options was "Change to upper case", but this is no longer in the list. I am concerned that this functionality has been removed in R2022a, and I'm wondering if that's because there is some other way to assign a keystroke sequence to an editor action. I don't think running a scipt could help me, as I don't believe the MATLAB editor is user-programmable.
The attached image demonstrates the differences - the left side is the preferences window in 2021a and the right in 2022a. You can see that the two change case actions are missing in the latter if you scroll horizontally.
You might try asking Yair Altman if there is a way to get the highlighted text in the editor window:
Maybe something like matlab.desktop.editor.somethingOrOther
Thank you - I'll bear that in mind if a more straightforward approach doesn't offer.

Sign in to comment.

Do this in both versions of your programs
>> dir(prefdir)
Do you see shortcuts.xml in one but not the other? If so, copy it over.

3 Comments

I don't think editor preferences are stored in shortcuts.xml. The relevant file seems to be WindowsModifiedDefaultSet.xml, which has the shortcut I set associated with the action id "to-upper-case". This file is the same in my prefdirs for both 2021a and 2022a, so I think was probably copied automatically, but which has no effect in 2022a because the action has been removed.
Well I guess then you're just out of luck. Maybe a call to tech support might help.
Thanks - yes I'll send a support request unless someone here comes up with something.

Sign in to comment.

Categories

Products

Release

R2022a

Community Treasure Hunt

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

Start Hunting!