Using ctrl-backspace to remove previous word in command window

11 ビュー (過去 30 日間)
Shaiyan
Shaiyan 2015 年 4 月 13 日
移動済み: Walter Roberson 2024 年 3 月 15 日
I use ctrl-backspace in MATLAB Editor (MATLAB 2015a) to remove the previous word, but it doesn't work in the command window. I tried changing it in Preferences -> Keyboard -> Shortcuts, but there doesn't seem to be the option to bind it to "Remove Previous Word" in the Command Window. In the attached image, you can see that it is set to work in the MATLAB Editor, but when clicking the down-arrow next to where it says MATLAB Editor, it does not show any other options.
This seems like a very common shortcut used by many Windows programs, and it's strange that it should only be allowed in the editor. If it's actually not allowed, why? Is there a workaround?
Thanks!
  2 件のコメント
Sean Houlihan
Sean Houlihan 2017 年 7 月 11 日
移動済み: Walter Roberson 2024 年 3 月 15 日
It's amazing that there is still no fix for this. Mathworks is really intent on driving away programmers.
Alexandre Melanson
Alexandre Melanson 2023 年 7 月 20 日
Same problem here. How annoying! Anybody from Matlab reading this, please consider making this change. This is affecting my workflow with Matlab.

サインインしてコメントする。

回答 (3 件)

Jason Carruth
Jason Carruth 2023 年 9 月 14 日
I totally agree. This is very annoying!
Here's a decent work-around I came up with:
Go to your keyboard shortcut preferences (Home tab>Environment group>Preferences>Keyboard>Shortcuts).
In the searchbar, search for:
Ctrl+Shift+Left (Selection Previous Word) and add the shortcut Ctrl+Backspace only to the Command Window tool.
Ctrl+Shift+Right (Selection Next Word) and add the shortcut Ctrl+Delete only to the Command Window tool.
These shorcuts will highlight the text you wish to remove. Simply tap either Backspace or Delete one more time to remove them.
  1 件のコメント
Madmad
Madmad 2024 年 3 月 15 日
Thanks! Sad Matlab is still there in 2024!

サインインしてコメントする。


Image Analyst
Image Analyst 2015 年 4 月 13 日
Not that I know of. Control-delete to delete the next word doesn't work either.
  2 件のコメント
Shaiyan
Shaiyan 2015 年 4 月 13 日
:(
Galen Lynch
Galen Lynch 2019 年 2 月 20 日
:'(

サインインしてコメントする。


Darshan Shah
Darshan Shah 2019 年 11 月 21 日
What I've observed is, sometimes it seems to work, and sometimes it just doesn't. (I'm on r2019a) When it doesn't for some reason, restarting MATLAB makes it work again.

カテゴリ

Help Center および File ExchangeEntering Commands についてさらに検索

製品


リリース

R2015a

Community Treasure Hunt

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

Start Hunting!

Translated by