Is there a way to multiline edit code in matlab, Instead of copy-paste a single line repeatedly, or copy paste from matlab to visual studio editor to take advantage of the visual studio's alt + cursor select
?
A common way to add more cursors is with Shift+Alt+Down or Shift+Alt+Up that insert cursors below or above. Note: Your graphics card driver (for example NVIDIA) might overwrite these default shortcuts. Ctrl+D selects the word at the cursor, or the next occurrence of the current selection.
Here is the way: Select the lines you want to have multiple cursors. Simply hit Alt + Shift - I .
Just a quick mention that MATLAB officially support multi-line cursor since R2018a, just hold Alt and hold left mouse button (also Alt+Shift in linux) to draw a column selection across multiple lines.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With