如何在IntelliJ IDEA中的当前文件上运行外部工具 [英] How to run external tool on current file in IntelliJ IDEA

查看:688
本文介绍了如何在IntelliJ IDEA中的当前文件上运行外部工具的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将当前编辑的JSP上传到服务器 - 通过scp。我在我的Windows机器上的路径上有pscp。

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

如何设置inteliij想法,只需点击一下即可查看当前打开的文件?

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

(我会能够在eclipse中设置它 - 通过'运行工具'和参数占位符)

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

推荐答案

在IntelliJ IDEA中,此功能被调用外部工具。您可以将各种变量传递给流程,包括当前文件名。

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.

这篇关于如何在IntelliJ IDEA中的当前文件上运行外部工具的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆