Hum, I guess you better use a build system
, or even a shortcut using the exec
command? You could even do a plugin that automatically compiles the big file when you save a small one.
Create a build system (save this content into a file called Batch.sublime-build
, in your User
directory)
{
"cmd": "$file",
"selector": "source.dosbatch"
}
Then, open you batch file that builds your main file, and press ctrl+b
(select batch
if it asks you).
As you probably understood, I’m a bit against this feature, because sublime text comes with a much better one (build system
) and I don’t think a lot of people use this feature (tell me if I’m wrong).
But, really you should create a plugin that compiles when you save. If you don’t know how to, give be a bit more infos, I’m happy to do it for you (in this case, open a new topic).
Matt