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?

2 comments

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

0

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).

https://www.jetbrains.com/help/webstorm/2018.3/settings-path-variables.html

1

Please sign in to leave a comment.