Editor Templates Package

Tools for the creation, storage, and use of templates for code that you use frequently.
Updated 1 Sep 2016

View License

The EditorTemplates package is a suite of tools used to make templates
that can then be easily inserted in an active editor window. The concept
is similar to having many strings on the clipboard that you can paste into an editor. This works by taking the selected text or editor file you
wish to turn into a template (copy) and write it to a function that when
called inserts the text at the current mouse position in the current
This was developed to make it so that frequently used templates do not
need to be rewritten or copied from a repository. Instead you can call a
function (or use the function as a shortcut!) to insert the text when you
need it.

There are a few common templates predefined for your use or modifications.

To get started, unzip the the file into a folder on your path. Then run:


Cite As

Sean de Wolski (2024). Editor Templates Package (https://www.mathworks.com/matlabcentral/fileexchange/40349-editor-templates-package), MATLAB Central File Exchange. Retrieved .

MATLAB Release Compatibility
Created with R2012b
Compatible with any release
Platform Compatibility
Windows macOS Linux
Find more on Environment and Settings in Help Center and MATLAB Answers

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!
Version Published Release Notes

Updated license

Latest Submission.