multiple line edit is not allowed on MATLAB file editor window?

191 views (last 30 days)
Taekyu Shin
Taekyu Shin on 23 Oct 2015
Commented: Jaco-Louis Venter on 19 May 2021
Emacs, Sublime text and Visual studio, etc. They all have multiple line edit.
If you do not know what I mean, please see this video at :
Can we do that?
Simon Beck
Simon Beck on 5 Mar 2021
It really would be a very useful feature!
please consider it in future releases.

Sign in to comment.

Answers (3)

Dario Mangoni
Dario Mangoni on 26 Sep 2016
I would upvote 1billion times this question. Matlab is a so powerful tool that is really becomed lame for its lacking-features Editor.
Together with multiediting, it lacks also of the "duplicate line" feature.
@dpb: Follows a textual description: "Duplicate line" feature allow to duplicate the line you are on, usually pressing Ctrl+D. e.g.
disp('I like textual descriptions')
... pressing Ctrl+D while the cursor is on that line gives
disp('I like textual descriptions')
disp('I like textual descriptions')
Please, don't ask us why this feature is "really useful".
  1 Comment
dpb on 27 Sep 2016
In Brief, numeric keypad '+' copies the current line to buffer and then numeric keypad 'Insert' pastes that buffer (line). Unfortunately for me, the Brief emulation in VS is incomplete and some keystrokes aren't allowed to be remapped at all so it's pretty-much useless.
My question before wasn't anything about whether whatever was/wasn't useful; simply didn't recognize the desired functionality by the description. And, it's certainly much quicker to simply read a simple description than have to go watch a video...and if it takes a video to explain it, I don't care enough and undoubtedly don't use it so don't have anything to add! :)

Sign in to comment.

Stefan de Groot
Stefan de Groot on 23 Apr 2019
Dear Mathworks,
Any update on this feature request please!
Thank you!

Ken Atwell
Ken Atwell on 24 Oct 2015
The MATLAB Editor does not have this, I think. Do you have an example MATLAB source file you can share with us where this kind of thing would be really useful to have?
Jaco-Louis Venter
Jaco-Louis Venter on 19 May 2021
The most common use I can think of for this feature would be to suppress multiple lines of code with a ;. During development, I leave many lines unsuppressed to make sure the output is what I expect. If I then tidy up my code, I have to spend quite some time inserting ; everywhere. With multi-select this would be a piece of cake.

Sign in to comment.

Community Treasure Hunt

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

Start Hunting!