Skip to content

Instantly share code, notes, and snippets.

@vctls
Created November 30, 2022 13:03
Show Gist options
  • Save vctls/88b13d52f7d6cdd830fb9ba065e46736 to your computer and use it in GitHub Desktop.
Save vctls/88b13d52f7d6cdd830fb9ba065e46736 to your computer and use it in GitHub Desktop.
Example of PhpStorm file watcher for WSL
<TaskOptions>
<TaskOptions>
<option name="arguments" value="options $/FileRelativePath$" />
<option name="checkSyntaxErrors" value="true" />
<option name="description" />
<option name="exitCodeBehavior" value="ALWAYS" />
<option name="fileExtension" value="php" />
<option name="immediateSync" value="false" />
<option name="name" value="My WSL file watcher" />
<option name="output" value="$/FileRelativePath$" />
<option name="outputFilters">
<array />
</option>
<option name="outputFromStdout" value="false" />
<option name="program" value="$PROJECT_DIR$/../../../../usr/bin/command" />
<option name="runOnExternalChanges" value="false" />
<option name="scopeName" value="Project Files" />
<option name="trackOnlyRoot" value="false" />
<option name="workingDir" value="$ContentRoot$" />
<envs />
</TaskOptions>
</TaskOptions>
@vctls
Copy link
Author

vctls commented Nov 30, 2022

PhpStorm converts some of the values in the form. For example, it doesn't keep the WSL program path.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment