在 Linux KDE 桌面環境的 Sublime Text3 中編譯&執行 C++ ,須事先安裝好 g++ 編譯器
在 Sublime Text 中選擇 [Tools] -> [Bulid System] -> [New Bulid System] 把下方的 Json 指令貼上並儲存為 c++.sublime-build,並調整 [Tools] -> [Bulid System] 為 [c++] ,即可使用 Build 以及 Build with 功能編譯或執行 C++ 檔案
★調整下方 variants 中的 name 可變更在 Sublime Text3 中 Build with 的選項文字, 調整 shell_cmd 可修改於 bash 中執行的指令
★若須調整執行的終端機,請將 konsole 取代為其他終端機開啟指令
{
	"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\"",
	"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
	"shell": true,
	"working_dir": "${file_path}",
	"selector": "source.c++, source.cxx, source.cpp, source.cc",
	"variants":
	[
		{
			"name": "Run",
			"shell_cmd": "konsole --hold -e ${file_path}/./${file_base_name}"
		},
		{
			"name": "Run in Sublime Text 3",
			"shell_cmd": "${file_path}/./${file_base_name}"
		},
		{
			"name": "Build",
			"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\""
		}, 
		{
			"name": "Build ( C++ 11 )",
			"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\""
		}, 
		{
			"name": "Build And Run",
			"shell_cmd": "g++ \"${file}\" -o \"${file_path}/${file_base_name}\"  && konsole --hold -e ${file_path}/./${file_base_name}"
		}, 
		{
			"name": "Build ( C++ 11 ) And Run",
			"shell_cmd": "g++ -std=c++11 -Wall \"${file}\" -o \"${file_path}/${file_base_name}\"  && konsole --hold -e ${file_path}/./${file_base_name}"
		}
	]
}