【问题标题】:How do I configure Sublime Text 2 to automatically use user-built build system for fortran?如何配置 Sublime Text 2 以自动使用用户构建的 fortran 构建系统?
【发布时间】:2016-01-06 15:01:53
【问题描述】:

这是我的/Packages/User/Fortran.sublime-build 文件的内容。

{
    "cmd": ["gfortran", "${file}", "-o", "${file_path}/${file_base_name}"],
    "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
    "working_dir": "${file_path}",
    "selector": "source.f, source.f90, source.f77, source.f95",

    "variants":
    [
        {
            "name": "Run",
            "shell": true,
            "cmd": ["start", "cmd", "/k", "$file_base_name"]
        }
    ]
}

我还在/Packages/Fortran/ 中提取了this

如何配置 Sublime Text 2,使其自动为所有 fortran 文件选择此构建系统,而无需手动更改构建系统?

【问题讨论】:

    标签: sublimetext2 sublimetext


    【解决方案1】:

    只要您将上述构建系统添加到您的项目中(您使用了适当的选择器),您应该没问题。只需确保选择了工具 -> 构建系统 -> 自动。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-06-29
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2013-07-12
      • 2013-01-03
      相关资源
      最近更新 更多