0

I frequently have to send JS files through Outlook, which means that I have to modify the extension of the file to txt or the like so the recipient can receive it. I'd ideally like to implement a file watcher in WebStorm to simply output a child file with .txt appended to it similar to how it'll show a child CSS file for a LESS file.

To sum up, given a file named "file.js", I would like it to output a "file.js.txt" as well whenever I make a change.

Is there any simple way to go about doing this?

4

1 回答 1

3

您可以创建一个 .bat 文件(shell 脚本)来复制文件,然后将其配置为文件观察程序。喜欢:

copy %1 %2 /Y

观察者设置:

Program: path/to/your/batfile.bat
Arguments: $FileName$ $FileName$.txt
Working directory: $FileDir$
Output paths: $FileName$.txt
于 2014-11-12T15:16:29.623 回答