使用notepad ++执行命令 [英] Execute commands with notepad++

查看:222
本文介绍了使用notepad ++执行命令的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Notepad ++中的Run命令指定要处理的实际文件。
我想使用actualfile作为输入运行pdflatex,或cs编译器等。
使用整个路径是不实际的,它必须与任何实际文件一起工作。

How can I specify the actual file to process using the Run command in Notepad++. I want for example run pdflatex using the actualfile as input, or the cs compiler, etc. Using the entire path isn't practical, it must works with any actual file.

推荐答案

您可以使用执行字符串中的变量自动添加当前文件:

You can automatically add the current file using a variable in the execution string:

C:\temp\test.exe "$(FULL_CURRENT_PATH)" 

有关详情,请参阅Notepad ++ Wiki:

For more details see the Notepad++ Wiki:

http://docs.notepad-plus-plus.org/index.php/External_Programs

这篇关于使用notepad ++执行命令的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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