I've been writing a lot of code in Matlab 2012a recently, and I'm wondering if there's some way to show whitespace characters (tabs, spaces, etc.) like in Notepad++ or Sublime Text.
I've been Googling around and did a search on SO, but the internet seems oddly quiet.
Thanks!
You can change the appearance of the Editor and Live Editor. On the Home tab, in the Environment section, click Preferences. Select Editor/Debugger > Display, and then adjust preference options as described in the table below.
To launch the editor, if it is not already open, type edit or edit filename. Commands can be entered here and executed as a script. They are saved with a . m extension.
Although I don't think you can do this in the MATLAB editor, you can choose to use a different editor as your default. Under Preferences go to Editor/Debugger, and select "Text Editor" rather than "MATLAB Editor" (you need to supply the full path).
If this is set, then .m
files etc. opened from within MATLAB should open in your preferred editor, not the MATLAB editor.
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