自用 sublime text c++ 编译

https://www.sublimetext.com/

{
"encoding": "utf-8",
"working_dir": "$file_path",
"shell_cmd": "g++ -Wall -std=c++14 \"$file_name\" -o \"$file_base_name\"",
"file_regex": "^(..[^:]*):([0-9]+):?([0-9]+)?:? (.*)$",
"selector": "source.c++", "variants": 
[
    {   
    "name": "Run",
        "shell_cmd": "g++ -Wall -std=c++14 -O2 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause\""
    }
]
}

或者使用
CppFastOlympicCoding
插件

posted @ 2025-03-01 23:03  BigSmall_En  阅读(15)  评论(0)    收藏  举报