I have a project where I am running a Windows virtual machine on my Mac because the back-end uses ASP.NET. I do all of the actual front-end coding (HTML, CSS, JS) with PHPStorm on my Mac. To get the files to save and "compile" to Visual Studio in real time, I use something called CopySauce. Unfortunately, this setup breaks with JS files because CopySauce detects a "jb old" file associated with whatever JS file I am working on and looks for it afterwards.
So a file that looks like:
myFile.js
would have a
myFile.js___jb_old___
I Googled around and it seems that the "jb old" file is a temporary file being created and deleted by PHPStorm (and probably other JetBrains IDEs). So after the "jb old" file is detected, CopySauce tries looking for it going forward as long as it's not restarted. This is when CopySauce starts erroring out since the "jb old" file no longer exists.
Is there anyway to prevent PHPStorm from creating these files?
Use the New popup to add files and folders faster. Focus on the Project tool window and press Cmd+N/Alt+Insert - WebStorm will open the New popup. Use this popup to add a new file quickly. You can also create a new folder for that new file: type the name of the folder (or folders) and then add / before the file name.
Settings/Preferences | Appearance & Behavior | System Settings | Use "safe write"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With