sublime配置C++编译环境

配置C++编译命令

{
	"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
	"working_dir": "${file_path}",
	"cmd":"g++ -Wall -std=c++11 -O2 $file_name -o $file_base_name",
	"selector": "source.c, source.c++",
	"shell": true,
	"encoding":"cp936",
	"variants":[
		{
			"name":"Run",
			"cmd":"start cmd /c \"${file_base_name} & pause\""
		}
	]
}

配置快捷键

[
	{ "keys": ["f10"], "command": "build", "args": {"select": true} }
]