Sublime Forum

Save before build?

#1

Hello,

I’ve made the following build file for PHP

{
	"command": "save",
	"cmd": "C:\\wamp\\bin\\php\\php5.3.10\\php.exe", "-l", "$file"],
	"selector": "source.php"
}

However I do not believe the save ever works? What am I missing?

1 Like

#2

You cannot use a “command” in a build file.
This is the most complete reference http://docs.sublimetext.info/en/latest/reference/build_systems.html

In the “Tools” menu, there is a “Save All on Build” checkbox.
Is this what you want ?

1 Like

#3

oh wow I’m blind, yep that works perfectly. thank you!

0 Likes