跳到正文

剪贴板

剪贴板 li8287h7

原文
剪贴板信息

剪贴板信息

收录
更新

Linux

JSON
{
    "encoding": "utf-8",
    "working_dir": "$file_path",
    "variants":
    [
        {
            "name": "Run-With-O2",
            "shell_cmd": "g++ -O2 -Wall -std=c++14 \"$file\" -o \"$file_base_name\" && xterm -e bash -c \"${file_path}/${file_base_name};exec bash\" ",
        }
    ]
}

Linux2

C++
{
    "variants": [
        {
            "name": "Run-With-O2",
            "shell_cmd": "g++ -O2 -Wall -std=c++14 \"$file\" -o \"$file_base_name\" && gnome-terminal -- bash -c \"${file_path}/${file_base_name};exec bash\" ",
        }
    ]
}

Windows

JSON
{
  "encoding": "utf-8",
    "working_dir": "$file_path",
    "variants":
    [
        {
        "name": "RunInCmd",
            "shell_cmd": "g++ -O2 -Wall -std=c++14 -Wl,-stack=1000000000 \"$file\" -o \"$file_base_name\" && start cmd /c \"\"${file_path}/${file_base_name}\" & pause \""
        }
    ]
}