File Exchange

image thumbnail

MATLAB Snippets

version 1.0.6 (8.93 MB) by Pavel Trnka
Code snippets for the Matlab editor.


Updated 12 Nov 2019

GitHub view license on GitHub

MATLAB Snippets App adds code snippets to the Matlab editor. Snippets definition uses syntax compatible with the Visual Studio Code and with the Textmate 1.x. The integration to the Matlab editor is loose, the snippets are inserted by a keyboard shortcut (usually <ALT+1>).

See the Github project page for the animated App use examples:

* snippets can contain tabstops with default values (placeholders)
* any tabstop value can be mirrored on multiple locations in the snippet
* variables containing currently selected text, currently edited filename, etc. can be used
* tabstop mirroring and variables can be altered by regular expressions

Cite As

Pavel Trnka (2020). MATLAB Snippets (, GitHub. Retrieved .

Comments and Ratings (11)

oh my god! this is pure Gold! thank you so much!
i have always dreamt of something like this!

Thank you!

Jiri Dostal

Finally a tool that helps to keep a high coding standard almost effortlessly.

Jan Prasek

Pavel Otta



Bug fix.


Hide window handle to avoid conflicts with gcf, gca, etc.


Bug fix.


Fix for high DPI screens with text scaling.


Fix: App did not start after Matlab restart.


Description update

MATLAB Release Compatibility
Created with R2019a
Compatible with R2016a to any release
Platform Compatibility
Windows macOS Linux