您的位置:首页 > 其它

Ubuntu Sublime_text3 Clang 编译的简单配置

2014-07-28 13:21 330 查看
网上关于sublime配置的不少,但有的配置编译运行居然更本没法输入!!!

现在写一个靠谱点的配置:

{
"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", "--title=${file}","-e",
"bash -c \"clang++ '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}' ; read -p 'Press any key to continue...'\""]
}
]
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: