Path macro for user profile/appdata in Windows

When setting details for tools (in my case, setting up a watcher) is there a way to access the environmental variables, %APPDATA% on windows?

Comment actions Permalink

No, there is no file watcher macro for this; but the program path is stored using path variables in watcherTasks.xml, like:

<option name="program" value="$USER_HOME$/AppData/Roaming/npm/lessc" />

So the XML files are shareable

Comment actions Permalink

You may also use Path Variables (but that requires such variable to be defined on every computer where this project will be opened/used). The path to some tool etc will be saved using that variable (invisible to end user: you will see the actual path while in config file it will be stored using that variable).


Please sign in to leave a comment.