GavriYashar / Matlab-Editor-Plugin

Extends features for the matlab editor, Bookmarks, FileStructure, Clipboard stack
MIT License
74 stars 12 forks source link

Live Templates not working #133

Closed ppatel26 closed 3 years ago

ppatel26 commented 6 years ago
Live Templates has been disabled for one or both following reasons:
  * No Replacement folder found in "/Users/parvpatel/Documents/MATLAB
  * No Variables folder found in "/Users/parvpatel/Documents/MATLAB"
please set "path.mepr.rep" and "path.mepr.var" manually

Above shows up after starting matlab.

I tried to add the following lines in "startup.m" but that didnt solve it.

at.mep.prefs.Settings.setProperty("path.mepr.rep", "/Users/parvpatel/Documents/MATLAB/MEP/Replacements");
at.mep.prefs.Settings.setProperty("path.mepr.var", "/Users/parvpatel/Documents/MATLAB/MEP/Replacements/Variables");
GavriYashar commented 6 years ago

You have to use the fully qualified paths https://github.com/GavriYashar/Matlab-Editor-Plugin/wiki/Live-Templates#setup

If the startup doesn't add the pathes to the properties you have to set path.mepr.var=D\:\\Replacements\Variables and path.mepr.rep=D\:\\Replacements

ppatel26 commented 6 years ago

It works. Thank you :)