通过简单的批处理文件崇高文本2版本 [英] Sublime Text 2 build via simple batch file

查看:166
本文介绍了通过简单的批处理文件崇高文本2版本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经打了一下与ST2,它似乎是一个pretty可爱的编辑器。可惜的是,它的文档是可怕的。

I've been playing a bit with ST2 and it seems like a pretty cute editor. Unfortunatelly, its documentation is horrible.

和我是很好的。因此,这里是我的问题。

And I'm being nice. So here's my question.

我有一个目录五个文件,我通常是通过一个.bat文件建立与

I have five files in a directory, which I usually build via a .bat file with

ifort file1.f90 file2.f90 file3.f90 ...

我怎么可以定义并执行此行CMD窗口通过快捷方式(考虑到ENVIROMENTAL变量PATH一样),从ST2和看到输出?是一样的东西,即使在现阶段与ST2?

how can I define and execute this line on windows cmd (taking account the enviromental variables like PATH) from ST2 via a shortcut and see the output? Is something like that even possible at this stage with ST2?

推荐答案

我刚刚作出了一个新的版本是这样的:

I just made a new build like this:

{
    "cmd": ["$file"],
    "selector": "source.dosbatch"
}

然后,你干脆把 ifort ... 字符串中的.bat文件和打造这一点。

Then you would put your ifort ... string in a .bat file and "build" that.

这篇关于通过简单的批处理文件崇高文本2版本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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