Search code examples
ideintellij-idea

How to run external tool on current file in IntelliJ IDEA


I need to upload currently edited JSPs to server - via scp. I have pscp on my path on my windows machine.

How do I setup inteliij idea to do this with one click for currently opened file?

(I would be able to set this up in eclipse - via 'run tool' and parameter placeholders)


Solution

  • In IntelliJ IDEA this feature is called External Tools. There are various variables that you can pass to the process, including the current file name ($FilePath$).