sublime设置build system

PHP

{
	"cmd": ["php", "-f", "$file"],
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
	"selector": "source.php"
}

C++

{
	"cmd": ["g++ -Wall ${file} -o ${file_base_name} && ${file_path}/${file_base_name}"],
	"working_dir": "${file_path}",
	"selector": "source.c++",
	"shell": true
}

Lua

{
	"cmd": ["lua52", "$file"],
	"file_regex": "^[ ]*File \"(...*?)\", line ([0-9]*)",
	"selector": "source.lua"
}

顺便,转换文件格式的地方View -> Line Endings

标签: none

仅有一条评论

  1. [...]转载自:http://type.so/default/sublime-build-system.html[...]

添加新评论