Reference: http://blog.csdn.net/u010129448/article/details/47754623
Ubuntu under Gnome just change the code in deepin-terminal to Gnome terminal.
g++
{ "shell_cmd": "g++ ' ${file} '-O ' ${file_path}/${file_base_name} '", "File_regex": "^ (.. [^:]*]:([0-9]+):? ([0-9]+)?:? (. *) $ ", " Working_dir ":" ${file_path} ", " selector ":" Source.c, source.c++ ", " variants ": [ { "name": "Build & Run", "Shell_cmd": "Deepin-terminal-e bash-c \" g++ ' ${file} '-O ' ${file_path}/${file_base _name} '; ' ${file_path}/${file_base_name} '; Read-p ' \npress ENTER or type command to continue ... ' " }, { " name ":" Build only ", " Shell_cmd ":" g++ ' ${file} '-O ' ${file_path}/${file_base_name} ' " }, { " name ":" Run only ", " Shell_cmd ":" DEEPIN-TERMINAL-E bash-c \ "' ${file_path}/${file_base_name} '; Read-p ' \npress ENTER or type command to continue ... ' " } ]
Opengl
{ "shell_cmd": "g++ ' ${file} '-O ' ${file_path}/${file_base_name} '-lglut-lgl-lglu", "File_regex": "^ (.. [^:]*]:([0-9]+):? ([0-9]+)?:? (. *) $ ", " Working_dir ":" ${file_path} ", " selector ":" Source.c, source.c++ ", " variants ": [ { "name": "Build & Run", "Shell_cmd": "Deepin-terminal-e bash-c \" g++ ' ${file} '-O ' ${file_path}/${file_base _name} '-lglut-lgl-lglu; ' ${file_path}/${file_base_name} '; Read-p ' \npress ENTER or type command to continue ... ' " }, { " name ":" Build only ", " Shell_cmd ":" g++ ' ${file} '-O ' ${file_path}/${file_base_name} '-lglut-lgl-lglu ' }, { ' name ': ' Run only ', ' Shell_ CMD ":" Deepin-terminal-e bash-c \ "' ${file_path}/${file_base_name} '; Read-p ' \npress ENTER or type command to continue ... ' \ " } ] }
Linux Deepin under Sublimes configuration g++ OpenGL