Build System - Sublime Text 3

匿名 (未验证) 提交于 2019-12-03 01:22:02

问题:

I have the following script called "build-bat.sublime-build":

{   "cmd": "build.bat",   "working_dir": "$project_path",   "windows" : {       "shell": true   } } 

The script is in C:\Users\MyName\AppData\Roaming\Sublime Text 3\Packages

I can select the script in Tools/Build Systems/build-bat and then I run it via CTRL+B or via manually selecting it in Tools/Build

It happens exactly nothing. I don't see anything, I don't get any errors.

It should run a file named: build.bat in the current directory where the file that I am working on is placed. But that doesn't happen.

Why?

回答1:

After adding a new build system to sublime text 3 you have to restart sublime text 3. After this the code above works.



回答2:

You can rename your build.bat to make.bat and choose the Make build system in ST. Just press Ctrl+B and ST will try to start make command and make.bat will be executed. The output will be showen in ST's console.



标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!