网上关于sublime配置的不少,但有的配置编译运行居然更本没法输入!!!
现在写一个靠谱点的配置:
//Ubuntu Sublime_text3 clang 编译的简单配置: { "cmd": ["clang++", "${file}", "-o", "${file_path}/${file_base_name}"], "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$", "working_dir": "${file_path}", "selector": "source.c, source.c++", "variants": [ { "name": "Run", "cmd": ["gnome-terminal","-e", "bash -c \"clang++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ; read -p 'Press any key to continue...'\""] } ] }
Ubuntu Sublime_text3 Clang 编译的简单配置
时间: 2024-12-10 01:29:52