Skip to content

Instantly share code, notes, and snippets.

View szapp's full-sized avatar

Sören Zapp szapp

View GitHub Profile
@szapp
szapp / matlab_remove_trailing_whitespace
Last active September 22, 2016 09:22 — forked from hmaarrfk/matlab_remove_trailing_whitespace
Improved to replace the text only if it was changed to prevent the "unsaved" asterisk
% To remove a Matlab trailing whitespace in the editor
% Original Author: Sam Roberts
% http://stackoverflow.com/questions/19770347/how-to-auto-remove-trailing-whitespaces-on-save-in-matlab
% Modified by Mark Harfouche to remember cursor location
%
%
% Temp variable for shortcut. Give it an unusual name so it's unlikely to
% conflict with anything in the workspace.
shtcutwh__ = struct;