PhpStorm file watcher for individual files on remote hosts - less

My file watchers are setup and working properly for all my projects with locally downloaded files, but when editing files opened with the 'Browse Remote Hosts' file explorer the file watchers are not being executed.
I have tried all scope settings for the file watcher, but it doesn't seem to be possible to get this working for individual remote files.

remote file watchers are not supported, please follow WEB-9724 for updates

Related

Use Intellij File Watcher only on Open File

I've been using the Intellij Golang plugin recently (it's great) but I've been running into an issue with the File Watchers I set up. My working directory is set to my $GOPATH directory and I would like to be able to run golint and goimports after I save a file I'm working on. The issue I have is if I use git to clone a repo the next time I open Intellij it runs both golint and goimports on all the newly imported files which can take a long time for large projects. Is there a way to set up File Watcher so it only watches a file that is currently open? I added a screenshot of my current settings below:
Open Watcher setting -> Scope , change it to Open Files
If you wanna more control over the plugin, you can have a look at the official doc
Instead of file watcher you can get External tools configured to achieve almost the same functionality. The only difference is that this won't run on save but rather you'll have to trigger this manually. Or you could configure a macro to run them on save (but I don't have experience with macros + external tools so I'm not if this will work).

Force PhpStorm to recognize a project file

I have an annoying scenario in PhpStorm;
When I open a file by invoking the PhpStorm launcher with a relative file path as the only argument (phpstorm src/ZumbaController.php) the application will launch, but as the file is saved a prompt appears;
open a file from the terminal
dreaded confirm write-file dialog
Opening the file by the full, absolute path does not help. Having the current working directory of the shell be the real path of the project does not help either (opening from the real project directory). Is there a way to instruct PhpStorm that this file belongs to the currently-open project?
(I considered posting on superuser, but this is more of a programers-only problem)

How to selectively sync using sshfs?

Original question: Let's say I have a remote folder with .R, .py and .pkl files. How to avoid syncing .pkl files or how to sync .R files only? How to avoid syncing specific sub-folders?
Sorry I was wrong on my understanding. sshfs is not a sync utility but is a software to mount a remote system to a local folder accessible via SSH.
I am not deleting this question so that it helps the future readers.
Now, my next question would be: how to selectively block sub-folders in the remote folder from being shown in the local folder? how to selectively block sub-folders in the local folder from being updated in the remote folder?
You can mount with --bind option needed directories. Mount will exclude them from sshfs.
\For example if you have mounted dir in /var/www/site/ via
sshfs /var/www/site
Then you can mount the cache dir locally
mount /var/www/site/cache /tmp/site1cahe --bind
And cache will be local-only :)

How to open HTML properly in WinSCP

I am trying to use WinSCP to access a remote HTML file, and I do have root permission. However, if I open that HTML, it seems that all the sources and scripts are dysfunctional, e.g no images, buttons etc are loaded, and no js functions work. So how can I open a HTML using WinSCP so that all the sources are loaded and work properly? Thanks a lot.
I assume you "Open" the HTML file from a remote panel of WinSCP.
This makes WinSCP download the file to a temporary local folder and open the file from there.
As all the references to images and java script files are typically relative paths, they won't work from the temporary folder as the referenced files are not there. So it cannot work.
Either you need to download all files (including images and .js) to a local folder and open the HTML there.
Or you actually want to open the file from the server, via HTTP.
For that use the WinSCP extension "Generate HTTP URL".

automatically place downloaded files in folder bsed on downloads extension suffix

I’m making a simple web browser for work eeh, what I’d like to know is if its possible to save a file of a particular extension to a particular file.
I currently use google chrome when downloading a file it places this (regardless of extension) in a downloads folder without asking where I ant to download this too.
I want to achieve the same except that downloads with the extension .dwg are placed automatically in a folder named DWG DOWNLOADS…
How to achieve this in vb.net?
In any browser you have a config section.
In Firefox you have browser.download.useDownloadDir;true and browser.download.folderList;1
you can add your own config to allow different saved folder paths and dynamically modify them depending on the extension of the file you uploaded.
See a complete list of the web browser config with about:config in address bar.
Not real sure what you are asking, but if you are actually making a web browser just check the extension of the file you are requesting to download. If the extension is ".dwg" then save the file to the folder you want.
If you are wanting to automatically move Google Chrome downloads to a different directory, you can use a FileSystemWatcher to monitor for new files in Chrome's download directory and move them to another folder based on each file's extension.