How to write in multiple lines simultaneously in Matlab Editor ?

I have seen the new funcionalities in version 2021b and it appears that you can put the cursor in multiples lines for writing code.

1 件のコメント

Abdullah
Abdullah 2025 年 2 月 22 日
移動済み: Walter Roberson 2025 年 2 月 22 日
is multi-line editing available in 2019a ?
I've tried methods like:
  • Alt + Arow Keys
  • Alt + Shift + Arrow Keys

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

回答 (1 件)

Michael Zauner
Michael Zauner 2021 年 10 月 21 日

3 投票

This feature works only in adjacent lines.
Hold down the 'Alt' Key and drag over multiple lines with the mouse.
You should then see multiple highlighted characters.
This feature only works on Matlab 2021b!

4 件のコメント

Walter Roberson
Walter Roberson 2021 年 10 月 21 日
if I recall correctly it worked in Livescript for a version before that, but I do not recall when it was introduced in Livescript.
Christopher Bitikofer
Christopher Bitikofer 2022 年 9 月 25 日
The multiline editing in matlab is really nice, but is there any way we can get the arrow keys to work with it? What i mean is, When the alt key is held and we press the up and down arrows, additional lines should be added to our selection. This would same me some significant time swapping from keyboard to mouse. Also, on a laptop the arrow keys are far more reliable for accuarte input that trackpads.
If there is an existing way to do this i'd love to know! Thanks for considering!
Marcelo Moraes
Marcelo Moraes 2023 年 2 月 16 日
編集済み: Marcelo Moraes 2023 年 2 月 16 日
I support Christopher's request.
Shift+Alt+Arrow(up or down), like Notepadd++ is infinitely better than using mouse.
Is it possible to configure this feature as a user-defined shortcut?
John D'Errico
John D'Errico 2023 年 2 月 16 日
By the way, Answers is not official technical support. There is no reason for The MathWorks to be watching your requests here, even if you think you are talking to The MathWorks directly.
If you have a suggestion, submit it as a feature request.

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

カテゴリ

ヘルプ センター および File ExchangeEntering Commands についてさらに検索

製品

移動済み:

2025 年 2 月 22 日

Community Treasure Hunt

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

Start Hunting!

Translated by