sublime配置C++14

 1 {
 2      "cmd": ["g++", "-std=c++11", "${file}", "-o", "${file_path}/${file_base_name}"], // For GCC On Windows and Linux
 3      //"cmd": ["CL", "/Fo${file_base_name}", "/O2", "${file}"],  // For CL on Windows Only
 4      "file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
 5      "working_dir": "${file_path}",
 6      "selector": "source.c, source.c++",
 7  
 8      "variants":
 9      [
10           {
11                "name": "Run",
12                "cmd": ["bash", "-c", "g++ -std=c++11 -pthread '${file}' -o '${file_path}/${file_base_name}' && '${file_path}/${file_base_name}'"]  // Linux Only
13                // "cmd": ["CMD", "/U", "/C", "g++ -std=c++11 ${file} -o ${file_base_name} && ${file_base_name}"]  // For GCC On Windows Only
14                //"cmd": ["CMD", "/U", "/C", "CL /Fo${file_base_name} /O2 ${file} && ${file_base_name}"]   // For CL On Windows Only
15           }
16      ]
17 }

 

posted @ 2017-06-23 16:08  tak_fate  阅读(307)  评论(0编辑  收藏  举报