![]() ![]() 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. By default this action is only bound to Ctrl+K in the Command Window. This single action replaces the Shift+End, Delete combo. A second Ctrl+K deletes the newline character bringing the next line up. This action deletes from the caret forward to the end of a line. ![]() The other action is “Kill Line” (Ctrl+K default on Windows). This is useful when you find yourself holding down the shift and ctrl key with the right arrow to select a bunch a text for the purpose of deleting it. Used in the standard way, repeated invocations go through your line (and on to the next) deleting one word at a time. Basically, this sticks the next word to the right of where you are. If you’re in the middle of a word the rest of the word and following space is deleted. So if you’re at the end of the word, the space is deleted. Starting at the caret (or, text insertion point) all text up to the next letter after a space is deleted. ![]() This does almost exactly what you’d think. The first is “Remove Next Word” (Ctrl+Delete default on Windows). Amongst the standard cut/copy/paste-style actions that we are all familiar with, the Editor also has two forward-deleting actions. You can specify a custom editor in File->Preferences->Editor/Debugger and then use that for all editing. Unfortunately we don’t have a concise way of advertising or providing default keyboard shortcuts for all them. Currently not available in Matlab, you should not need it either if you need to set multiple variables to the same value, use a matrix (or higher order matrix in the case where you want to assign a matrix to it). The MATLAB Editor has plenty of handy text-editing actions built in to it. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |