2012b Editor missing features "Change Case"?
2 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Hi.
Am I the only one that's missing the possibility to change case of text in the 2012b MatLab editor? Or is it still there and I just don't find it? No infos in the help and doc...
In earlier versions there has been the Text Menu with functions "Change to Upper Case" and "Change to Lower Case".
Greets, Heiko
0 comentarios
Respuesta aceptada
Friedrich
el 24 de Oct. de 2012
Editada: Friedrich
el 24 de Oct. de 2012
Hi,
it's there, or better it needs to be enabled again. Go to the ML preferences => Keyboard => Shortcuts. There you will find "change to lower case" and "change to upper case". Give/assign both a shortcut and it works again.
Seems like by default no shortcut is assigned to it.
Más respuestas (4)
Andreas Goser
el 22 de Oct. de 2012
Indeed this seems to be reomoved as also the keyboard shortcuts Ctrl U and Ctrl Shift U are not working. I will see if I can find out more.
Can you describe me the use case where you use(d) this feature? I personally can't think of a use.
0 comentarios
Heiko
el 22 de Oct. de 2012
2 comentarios
Andreas Goser
el 22 de Oct. de 2012
OK. I contacted Development. At the minimum, this is an enhancement request now.
Sean de Wolski
el 24 de Oct. de 2012
Editada: Sean de Wolski
el 24 de Oct. de 2012
This is kind of a kludgy workaround but it should work pretty easily for you:
hEditor = matlab.desktop.editor.getActive; %get active editor
hEditor.insertTextAtPositionInLine(upper(hEditor.SelectedText),...
hEditor.Selection(1),hEditor.Selection(2)); %insert upper version of selected text.
Then hit delete to remove the current version. You could make a shortcut for each of these (upper and lower) so that it's a one button click on the shortcuts tab or Quick Access Toolbar, and then one hit of the delete button.
2 comentarios
Sean de Wolski
el 24 de Oct. de 2012
Editada: Sean de Wolski
el 24 de Oct. de 2012
Friedrich's answers is certainly the best!
The editor API doesn't allow for removing text easily.
Michael
el 23 de Mzo. de 2013
Use a 3rd party editor such as notepad++ which already has Matlab m-file syntax highlighting as default. Also has advantage you can continue to browse m files while Matlab scripts are running, unlike the built-in editor. Don't save files though while they are in use or likely to be used by active script - that just results in Matlab crashes/hangs!
0 comentarios
Ver también
Categorías
Más información sobre Environment and Settings en Help Center y File Exchange.
Productos
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!