My trackpad is not comfortable to use so I aim to do coding with my keyboard only. My "kill line" hotkey do not work no matter what key I set it to. I did unassign all conflicts.
Simple question: Is there a way to make a hotkey, that will delete the line of code, the cursor (caret) is currently located on (not only all code after the cursor, like kill-line is supposed to do)?
Simple question: Is there a way to make a hotkey, that will delete the line of code, the cursor (caret) is currently located on (not only all code after the cursor, like kill-line is supposed to do)? Show activity on this post. The Kill line ( Ctrl+K by default in Windows) is working only in the Matlab console window by default.
By default this action is only bound to Ctrl+K in the Command Window. To get it in the Editor, (1) go to File -> Preferences -> Keyboard -> Shortcuts, (2) search for “Kill Line”, (3) select the shortcut and in the table below, (4) click the drop-down arrow and check the “MATLAB Editor” checkbox.
When you select a line / multiple lines of code in Matlab, you can press F9 to execute it / them. Is there a shortcut to execute the current line of code? This would enable you to go down line per line with your arrow down key and execute the corresponding line with this shortcut. Show activity on this post.
Now your shortcut probably appear next to Search documentation text box. Pressing Alt + 1 will trigger the code and delete the row in editor. Now you can change it to your custom shortcut keys with help of AutoHotkey. #IfWinActive MATLAB ;in MATLAB window F11:: ;pressing F11...
The Kill line
(Ctrl+K
by default in Windows) is working only in the Matlab console window by default. If you go to File->Preferences->Keyboard->Shortcuts
, and select the Kill Line
action line, in the next table (labeled Shortcuts for Kill Line
) you will see two columns Shortcut
and Tolls with shortcut
. So you should make the Tools with shortcut
to be All tools
instead of Command Window
by clicking on it and selecting everything.
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